VLC  4.0.0-dev
Data Structures | Macros | Typedefs | Enumerations | Functions
vlc_addons.h File Reference
Include dependency graph for vlc_addons.h:

Go to the source code of this file.

Data Structures

struct  addon_file_t
 
struct  addon_entry_t
 
struct  addons_finder_t
 
struct  addons_storage_t
 
struct  addons_manager_owner
 
struct  addons_manager_t
 

Macros

#define ADDON_MAX_SCORE   (5 * 100)
 
#define ADDON_UUID_SIZE   16
 
#define ADDON_UUID_PSZ_SIZE   (ADDON_UUID_SIZE * 2 + 4)
 

Typedefs

typedef enum addon_type_t addon_type_t
 
typedef enum addon_state_t addon_state_t
 
typedef enum addon_flags_t addon_flags_t
 
typedef uint8_t addon_uuid_t[16]
 
typedef struct addon_file_t addon_file_t
 
typedef struct addons_finder_t addons_finder_t
 
typedef struct addons_finder_sys_t addons_finder_sys_t
 
typedef struct addons_storage_t addons_storage_t
 
typedef struct addons_storage_sys_t addons_storage_sys_t
 
typedef struct addons_manager_t addons_manager_t
 
typedef struct addons_manager_private_t addons_manager_private_t
 

Enumerations

enum  addon_type_t {
  ADDON_UNKNOWN = 0, ADDON_EXTENSION, ADDON_PLAYLIST_PARSER, ADDON_SERVICE_DISCOVERY,
  ADDON_SKIN2, ADDON_PLUGIN, ADDON_INTERFACE, ADDON_META,
  ADDON_OTHER
}
 
enum  addon_state_t { ADDON_NOTINSTALLED = 0, ADDON_INSTALLING, ADDON_INSTALLED, ADDON_UNINSTALLING }
 
enum  addon_flags_t { ADDON_BROKEN = 1, ADDON_MANAGEABLE = 1 << 1, ADDON_UPDATABLE = 1 << 2 }
 

Functions

VLC_EXPORT addon_entry_taddon_entry_New (void)
 addon entry lifecycle More...
 
VLC_EXPORT addon_entry_taddon_entry_Hold (addon_entry_t *)
 
VLC_EXPORT void addon_entry_Release (addon_entry_t *)
 
VLC_EXPORT addons_manager_taddons_manager_New (vlc_object_t *, const struct addons_manager_owner *)
 addons manager lifecycle More...
 
VLC_EXPORT void addons_manager_Delete (addons_manager_t *)
 
VLC_EXPORT int addons_manager_LoadCatalog (addons_manager_t *)
 Charge currently installed, usable and manageable addons (default "addons storage" module) More...
 
VLC_EXPORT 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, only gather info from the pointed package. More...
 
VLC_EXPORT int addons_manager_Install (addons_manager_t *p_manager, const addon_uuid_t uuid)
 Install or Remove the addon identified by its uuid. More...
 
VLC_EXPORT int addons_manager_Remove (addons_manager_t *p_manager, const addon_uuid_t uuid)
 
static bool addons_uuid_read (const char *psz_uuid, addon_uuid_t *p_uuid)
 String uuid to binary uuid helpers. More...
 
static char * addons_uuid_to_psz (const addon_uuid_t *p_uuid)
 

Macro Definition Documentation

◆ ADDON_MAX_SCORE

#define ADDON_MAX_SCORE   (5 * 100)

◆ ADDON_UUID_PSZ_SIZE

#define ADDON_UUID_PSZ_SIZE   (ADDON_UUID_SIZE * 2 + 4)

◆ ADDON_UUID_SIZE

#define ADDON_UUID_SIZE   16

Typedef Documentation

◆ addon_file_t

typedef struct addon_file_t addon_file_t

◆ addon_flags_t

◆ addon_state_t

◆ addon_type_t

typedef enum addon_type_t addon_type_t

◆ addon_uuid_t

typedef uint8_t addon_uuid_t[16]

◆ addons_finder_sys_t

◆ addons_finder_t

◆ addons_manager_private_t

◆ addons_manager_t

◆ addons_storage_sys_t

◆ addons_storage_t

Enumeration Type Documentation

◆ addon_flags_t

Enumerator
ADDON_BROKEN 
ADDON_MANAGEABLE 
ADDON_UPDATABLE 

◆ addon_state_t

Enumerator
ADDON_NOTINSTALLED 
ADDON_INSTALLING 
ADDON_INSTALLED 
ADDON_UNINSTALLING 

◆ addon_type_t

Enumerator
ADDON_UNKNOWN 
ADDON_EXTENSION 
ADDON_PLAYLIST_PARSER 
ADDON_SERVICE_DISCOVERY 
ADDON_SKIN2 
ADDON_PLUGIN 
ADDON_INTERFACE 
ADDON_META 
ADDON_OTHER 

Function Documentation

◆ addon_entry_Hold()

VLC_EXPORT addon_entry_t* addon_entry_Hold ( addon_entry_t )

◆ addon_entry_New()

VLC_EXPORT addon_entry_t* addon_entry_New ( void  )

◆ addon_entry_Release()

VLC_EXPORT void addon_entry_Release ( addon_entry_t )

◆ addons_manager_Delete()

VLC_EXPORT void addons_manager_Delete ( addons_manager_t )

◆ addons_manager_Gather()

VLC_EXPORT void addons_manager_Gather ( addons_manager_t ,
const char *  psz_uri 
)

◆ addons_manager_Install()

VLC_EXPORT int addons_manager_Install ( addons_manager_t p_manager,
const addon_uuid_t  uuid 
)

Install or Remove the addon identified by its uuid.

References addon_entry_Release(), getHeldEntryByUUID(), InstallEntry(), and VLC_EGENERIC.

Referenced by addons_manager_Remove().

◆ addons_manager_LoadCatalog()

VLC_EXPORT int addons_manager_LoadCatalog ( addons_manager_t )

Charge currently installed, usable and manageable addons (default "addons storage" module)

References LoadLocalStorage(), and VLC_SUCCESS.

◆ addons_manager_New()

VLC_EXPORT addons_manager_t* addons_manager_New ( vlc_object_t ,
const struct addons_manager_owner  
)

addons manager lifecycle

◆ addons_manager_Remove()

VLC_EXPORT int addons_manager_Remove ( addons_manager_t p_manager,
const addon_uuid_t  uuid 
)

◆ addons_uuid_read()

static bool addons_uuid_read ( const char *  psz_uuid,
addon_uuid_t p_uuid 
)
inlinestatic

String uuid to binary uuid helpers.

References ADDON_UUID_PSZ_SIZE.

◆ addons_uuid_to_psz()

static char* addons_uuid_to_psz ( const addon_uuid_t p_uuid)
inlinestatic