Go to the documentation of this file.
22 #define VLC_ADDONS_H 1
59 #define ADDON_MAX_SCORE (5 * 100)
60 #define ADDON_UUID_SIZE 16
61 #define ADDON_UUID_PSZ_SIZE (ADDON_UUID_SIZE * 2 + 4)
186 if ( !psz_uuid )
return false;
192 if ( *( psz_uuid + i ) ==
'-' )
195 sscanf( psz_uuid + i,
"%02x", &v );
196 (*p_uuid)[j++] = v & 0xFF;
212 if ( i == 4 || i== 7 || i== 9 || i== 11 )
214 int v = 0xFF & (*p_uuid)[i];
215 sprintf(
p,
"%02x", v );
char * psz_description
Definition: vlc_addons.h:83
#define ADDON_UUID_PSZ_SIZE
Definition: vlc_addons.h:61
char * psz_summary
Definition: vlc_addons.h:82
addons_finder_sys_t * p_sys
Definition: vlc_addons.h:116
char * psz_source_uri
Definition: vlc_addons.h:85
#define VLC_API
Definition: fourcc_gen.c:30
#define VLC_COMMON_MEMBERS
Backward compatibility macro.
Definition: vlc_common.h:457
Definition: vlc_addons.h:107
char * psz_image_uri
Definition: vlc_addons.h:86
vlc_mutex_t lock
Definition: vlc_addons.h:73
Definition: vlc_addons.h:71
Definition: vlc_addons.h:48
int(* pf_install)(addons_storage_t *, addon_entry_t *)
Definition: vlc_addons.h:125
Definition: vlc_addons.h:56
void(* addon_found)(struct addons_manager_t *, struct addon_entry_t *)
Definition: vlc_addons.h:137
struct addons_storage_sys_t addons_storage_sys_t
Definition: vlc_addons.h:120
static bool addons_uuid_read(const char *psz_uuid, addon_uuid_t *p_uuid)
String uuid to binary uuid helpers.
Definition: vlc_addons.h:184
void * sys
Definition: vlc_addons.h:136
char * psz_author
Definition: vlc_addons.h:84
int(* pf_retrieve)(addons_finder_t *, addon_entry_t *)
Definition: vlc_addons.h:112
addon_flags_t e_flags
Definition: vlc_addons.h:77
Definition: vlc_addons.h:50
int(* pf_catalog)(addons_storage_t *, addon_entry_t **, int)
Definition: vlc_addons.h:127
Definition: vlc_addons.h:55
struct addons_manager_owner owner
Definition: vlc_addons.h:145
Definition: vlc_addons.h:49
struct addon_entry_t::@139 files
long int i_downloads
Definition: vlc_addons.h:91
#define ADDON_UUID_SIZE
Definition: vlc_addons.h:60
char * psz_name
Definition: vlc_addons.h:81
Definition: vlc_addons.h:121
char * psz_version
Definition: vlc_addons.h:88
char * psz_source_module
Definition: vlc_addons.h:95
addons_manager_private_t * p_priv
Definition: vlc_addons.h:146
int addons_manager_Remove(addons_manager_t *p_manager, const addon_uuid_t uuid)
Definition: addons.c:560
addon_state_t e_state
Definition: vlc_addons.h:76
struct addons_finder_t::@140 entries
int addons_manager_LoadCatalog(addons_manager_t *)
Charge currently installed, usable and manageable addons (default "addons storage" module)
Definition: addons.c:406
Definition: vlc_addons.h:58
void addons_manager_Gather(addons_manager_t *, const char *psz_uri)
Gather addons info from repository (default "addons finder" module) If psz_uri is not NULL,...
Definition: addons.c:213
char * psz_uri
Definition: vlc_addons.h:114
void * p_custom
Definition: vlc_addons.h:102
#define DECL_ARRAY(type)
Definition: vlc_arrays.h:165
addons_manager_t * addons_manager_New(vlc_object_t *, const struct addons_manager_owner *)
addons manager lifecycle
Definition: vlc_addons.h:46
int(* pf_find)(addons_finder_t *)
Definition: vlc_addons.h:111
addon_type_t e_filetype
Definition: vlc_addons.h:66
Definition: vlc_addons.h:143
addon_type_t
Definition: vlc_addons.h:31
addon_type_t e_type
Definition: vlc_addons.h:75
The main vlc_object_t structure.
Definition: vlc_objects.h:39
int addons_manager_Install(addons_manager_t *p_manager, const addon_uuid_t uuid)
Install or Remove the addon identified by its uuid.
Definition: addons.c:551
Definition: vlc_addons.h:64
Definition: vlc_addons.h:55
pthread_mutex_t vlc_mutex_t
Mutex.
Definition: vlc_threads.h:267
Definition: vlc_addons.h:134
uint8_t addon_uuid_t[16]
Definition: vlc_addons.h:62
void(* addon_changed)(struct addons_manager_t *, struct addon_entry_t *)
Definition: vlc_addons.h:139
addon_uuid_t uuid
Definition: vlc_addons.h:80
addon_flags_t
Definition: vlc_addons.h:52
addon_state_t
Definition: vlc_addons.h:44
Definition: vlc_addons.h:52
Definition: vlc_addons.h:51
Definition: vlc_addons.h:53
char * psz_download_uri
Definition: vlc_addons.h:67
char * psz_image_data
Definition: vlc_addons.h:87
int(* pf_remove)(addons_storage_t *, addon_entry_t *)
Definition: vlc_addons.h:126
struct addon_file_t addon_file_t
addons_storage_sys_t * p_sys
Definition: vlc_addons.h:129
void addon_entry_Release(addon_entry_t *)
Definition: addons.c:97
Definition: vlc_addons.h:54
Definition: vlc_addons.h:56
addon_entry_t * addon_entry_Hold(addon_entry_t *)
Definition: addons.c:89
static char * addons_uuid_to_psz(const addon_uuid_t *p_uuid)
Definition: vlc_addons.h:203
struct addons_finder_sys_t addons_finder_sys_t
Definition: vlc_addons.h:106
void addons_manager_Delete(addons_manager_t *)
Definition: addons.c:171
void(* discovery_ended)(struct addons_manager_t *)
Definition: vlc_addons.h:138
Definition: vlc_addons.h:47
addon_entry_t * addon_entry_New(void)
addon entry lifecycle
Definition: addons.c:75
char * psz_archive_uri
Definition: vlc_addons.h:98
Definition: vlc_addons.h:57
Definition: vlc_addons.h:54
int i_score
Definition: vlc_addons.h:92
char * psz_filename
Definition: vlc_addons.h:68