AgsRegistry

AgsRegistry — remote control registry

Functions

Properties

AgsServer * server Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsRegistry

Implemented Interfaces

AgsRegistry implements AgsConnectable.

Includes

#include <ags/server/ags_registry.h>

Description

The AgsRegistry is a registry where you are able to lookup objects.

Functions

ags_registry_entry_alloc ()

AgsRegistryEntry *
ags_registry_entry_alloc ();

Allocated AgsRegistryEntry.

Returns

the newly allocated AgsRegistryEntry

Since: 2.0.0


ags_registry_entry_free ()

void
ags_registry_entry_free (AgsRegistryEntry *registry_entry);

Free registry_entry

Parameters

registry_entry

the AgsRegistryEntry

 

Since: 2.0.0


ags_registry_add_entry ()

void
ags_registry_add_entry (AgsRegistry *registry,
                        AgsRegistryEntry *registry_entry);

Add registry_entry to registry .

Parameters

registry

the AgsRegistry

 

registry_entry

the AgsRegistryEntry to add

 

Since: 2.0.0


ags_registry_find_entry ()

AgsRegistryEntry *
ags_registry_find_entry (AgsRegistry *registry,
                         AgsUUID *id);

Find id as AgsRegistryEntry in registry .

Parameters

registry

the AgsRegistry

 

id

the AgsUUID to find

 

Since: 2.0.0


ags_registry_new ()

AgsRegistry *
ags_registry_new ();

AGS_IS_REGISTRY()

#define AGS_IS_REGISTRY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_REGISTRY))

AGS_REGISTRY()

#define AGS_REGISTRY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REGISTRY, AgsRegistry))

AGS_REGISTRY_CLASS()

#define AGS_REGISTRY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_REGISTRY, AgsRegistryClass))

AGS_REGISTRY_GET_CLASS()

#define AGS_REGISTRY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_REGISTRY, AgsRegistryClass))

ags_registry_get_type ()

GType
ags_registry_get_type ();

Types and Values

enum AgsRegistryFlags

Enum values to control the behavior or indicate internal state of AgsRegistry by enable/disable as flags.

Members

AGS_REGISTRY_ADDED_TO_REGISTRY

the registry was added to registry, see AgsConnectable::add_to_registry()

 

AGS_REGISTRY_CONNECTED

the registry was connected by AgsConnectable::connect()

 

struct AgsRegistryEntry

struct AgsRegistryEntry {
  AgsUUID *id;
  GValue *entry;
};

AgsRegistryEntry is an entry that you might want to lookup remotely.

Members

AgsUUID *id;

the AgsUUID

 

GValue *entry;

the actual entry

 

AGS_TYPE_REGISTRY

#define AGS_TYPE_REGISTRY                (ags_registry_get_type())

struct AgsRegistry

struct AgsRegistry;

struct AgsRegistryClass

struct AgsRegistryClass {
  GObjectClass object;
};

Property Details

The “server” property

  “server”                   AgsServer *

The assigned AgsServer

Flags: Read / Write

Since: 2.0.0