AgsLv2UridManager

AgsLv2UridManager — urid

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── AgsLv2UridManager

Implemented Interfaces

AgsLv2UridManager implements AgsConnectable.

Includes

#include <ags/plugin/ags_lv2_urid_manager.h>

Description

The AgsLv2UridManager keeps your urid in a hash table where you can lookup your ids.

Functions

ags_lv2_urid_manager_insert ()

gboolean
ags_lv2_urid_manager_insert (AgsLv2UridManager *lv2_urid_manager,
                             gchar *uri,
                             GValue *id);

Inserts a id into hash associated with urid .

Parameters

lv2_urid_manager

the AgsLv2UridManager

 

uri

the object as key

 

id

the id to insert

 

Returns

TRUE on success, otherwise FALSE

Since: 1.0.0


ags_lv2_urid_manager_remove ()

gboolean
ags_lv2_urid_manager_remove (AgsLv2UridManager *lv2_urid_manager,
                             gchar *uri);

Removes an entry associated with urid .

Parameters

lv2_urid_manager

the AgsLv2UridManager

 

uri

the object to remove

 

Returns

TRUE as successfully removed, otherwise FALSE

Since: 1.0.0


ags_lv2_urid_manager_lookup ()

GValue *
ags_lv2_urid_manager_lookup (AgsLv2UridManager *lv2_urid_manager,
                             gchar *uri);

Lookup a id associated with urid in lv2_urid_manager

Parameters

lv2_urid_manager

the AgsLv2UridManager

 

uri

the object to lookup

 

Returns

the id on success, else the newly created id

Since: 1.0.0


ags_lv2_urid_manager_load_default ()

void
ags_lv2_urid_manager_load_default (AgsLv2UridManager *lv2_urid_manager);

ags_lv2_urid_manager_map ()

uint32_t
ags_lv2_urid_manager_map (LV2_URID_Map_Handle handle,
                          char *uri);

ags_lv2_urid_manager_unmap ()

const char *
ags_lv2_urid_manager_unmap (LV2_URID_Map_Handle handle,
                            uint32_t urid);

ags_lv2_urid_manager_get_instance ()

AgsLv2UridManager *
ags_lv2_urid_manager_get_instance ();

Singleton function to optain the id manager instance.

Returns

an instance of AgsLv2UridManager

Since: 1.0.0


ags_lv2_urid_manager_new ()

AgsLv2UridManager *
ags_lv2_urid_manager_new ();

Instantiate a id manager.

Returns

a new AgsLv2UridManager

Since: 1.0.0


AGS_IS_LV2_URID_MANAGER()

#define AGS_IS_LV2_URID_MANAGER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LV2_URID_MANAGER))

AGS_LV2_URID_MANAGER()

#define AGS_LV2_URID_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LV2_URID_MANAGER, AgsLv2UridManager))

AGS_LV2_URID_MANAGER_CLASS()

#define AGS_LV2_URID_MANAGER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LV2_URID_MANAGER, AgsLv2UridManagerClass))

AGS_LV2_URID_MANAGER_GET_CLASS()

#define AGS_LV2_URID_MANAGER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LV2_URID_MANAGER, AgsLv2UridManagerClass))

ags_lv2_urid_manager_get_type ()

GType
ags_lv2_urid_manager_get_type (void);

Types and Values

AGS_TYPE_LV2_URID_MANAGER

#define AGS_TYPE_LV2_URID_MANAGER                (ags_lv2_urid_manager_get_type())

struct AgsLv2UridManager

struct AgsLv2UridManager;

struct AgsLv2UridManagerClass

struct AgsLv2UridManagerClass {
  GObjectClass gobject;
};