AgsLv2UriMapManager

AgsLv2UriMapManager — lv2 uri map manager

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── AgsLv2UriMapManager

Implemented Interfaces

AgsLv2UriMapManager implements AgsConnectable.

Includes

#include <ags/plugin/ags_lv2_uri_map_manager.h>

Description

The AgsLv2UriMapManager keeps your uri in a hash table where you can lookup your ids.

Functions

ags_lv2_uri_map_manager_insert ()

gboolean
ags_lv2_uri_map_manager_insert (AgsLv2UriMapManager *lv2_uri_map_manager,
                                gchar *uri,
                                GValue *id);

Inserts a id into hash map associated with uri .

Parameters

lv2_uri_map_manager

the AgsLv2UriMapManager

 

uri

the object as key

 

id

the id to insert

 

Returns

TRUE on success, otherwise FALSE

Since: 1.0.0


ags_lv2_uri_map_manager_remove ()

gboolean
ags_lv2_uri_map_manager_remove (AgsLv2UriMapManager *lv2_uri_map_manager,
                                gchar *uri);

Removes a lock associated with uri.3

Parameters

lv2_uri_map_manager

the AgsLv2UriMapManager

 

uri

the object to remove

 

Returns

TRUE as successfully removed, otherwise FALSE

Since: 1.0.0


ags_lv2_uri_map_manager_lookup ()

GValue *
ags_lv2_uri_map_manager_lookup (AgsLv2UriMapManager *lv2_uri_map_manager,
                                gchar *uri);

Lookup a id associated with uri in lv2_uri_map_manager

Parameters

lv2_uri_map_manager

the AgsLv2UriMapManager

 

uri

the object to lookup

 

Returns

the id on success, else G_MAXUINT32

Since: 1.0.0


ags_lv2_uri_map_manager_load_default ()

void
ags_lv2_uri_map_manager_load_default (AgsLv2UriMapManager *lv2_uri_map_manager);

ags_lv2_uri_map_manager_uri_to_id ()

uint32_t
ags_lv2_uri_map_manager_uri_to_id (LV2_URI_Map_Callback_Data callback_data,
                                   char *map,
                                   char *uri);

ags_lv2_uri_map_manager_get_instance ()

AgsLv2UriMapManager *
ags_lv2_uri_map_manager_get_instance ();

Singleton function to optain the id manager instance.

Returns

an instance of AgsLv2UriMapManager

Since: 1.0.0


ags_lv2_uri_map_manager_new ()

AgsLv2UriMapManager *
ags_lv2_uri_map_manager_new ();

Instantiate a id manager.

Returns

a new AgsLv2UriMapManager

Since: 1.0.0


AGS_IS_LV2_URI_MAP_MANAGER()

#define AGS_IS_LV2_URI_MAP_MANAGER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LV2_URI_MAP_MANAGER))

AGS_LV2_URI_MAP_MANAGER()

#define AGS_LV2_URI_MAP_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LV2_URI_MAP_MANAGER, AgsLv2UriMapManager))

AGS_LV2_URI_MAP_MANAGER_CLASS()

#define AGS_LV2_URI_MAP_MANAGER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LV2_URI_MAP_MANAGER, AgsLv2UriMapManagerClass))

AGS_LV2_URI_MAP_MANAGER_GET_CLASS()

#define AGS_LV2_URI_MAP_MANAGER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LV2_URI_MAP_MANAGER, AgsLv2UriMapManagerClass))

ags_lv2_uri_map_manager_get_type ()

GType
ags_lv2_uri_map_manager_get_type (void);

Types and Values

AGS_TYPE_LV2_URI_MAP_MANAGER

#define AGS_TYPE_LV2_URI_MAP_MANAGER                (ags_lv2_uri_map_manager_get_type())

struct AgsLv2UriMapManager

struct AgsLv2UriMapManager;

struct AgsLv2UriMapManagerClass

struct AgsLv2UriMapManagerClass {
  GObjectClass gobject;
};