AgsDistributedManager

AgsDistributedManager — access distributed ressources

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsDistributedManager

Includes

#include <ags/object/ags_distributed_manager.h>

Description

The AgsDistributedManager interface gives you a unique access distributed resources.

Functions

ags_distributed_manager_set_url ()

void
ags_distributed_manager_set_url (AgsDistributedManager *distributed_manager,
                                 gchar *url);

Sets the url of distributed_manager .

Parameters

distributed_manager

The AgsDistributedManager

 

url

the url to set

 

Since: 1.0.0


ags_distributed_manager_get_url ()

gchar *
ags_distributed_manager_get_url (AgsDistributedManager *distributed_manager);

Gets the URL of distributed_manager .

Parameters

distributed_manager

the AgsDistributedManager

 

Returns

the URL as string

Since: 1.0.0


ags_distributed_manager_set_ports ()

void
ags_distributed_manager_set_ports (AgsDistributedManager *distributed_manager,
                                   guint *port,
                                   guint port_count);

ags_distributed_manager_get_ports ()

guint *
ags_distributed_manager_get_ports (AgsDistributedManager *distributed_manager,
                                   guint *port_count);

Gets the ports of distributed_manager .

Parameters

distributed_manager

the AgsDistributedManager

 

port_count

the number of ports returned

 

Returns

the port as string NULL-terminated array

Since: 1.0.0


ags_distributed_manager_set_soundcard ()

void
ags_distributed_manager_set_soundcard (AgsDistributedManager *distributed_manager,
                                       gchar *client_uuid,
                                       GList *soundcard);

Sets the soundcard at client_uuid .

Parameters

distributed_manager

The AgsDistributedManager

 

client_uuid

the location to fetch from

 

soundcard

the soundcard to set

 

Since: 1.0.0


ags_distributed_manager_get_soundcard ()

GList *
ags_distributed_manager_get_soundcard (AgsDistributedManager *distributed_manager,
                                       gchar *client_uuid);

Gets the soundcard of distributed_manager associated with client_uuid .

Parameters

client_uuid

the client uuid

 

distributed_manager

the AgsDistributedManager

 

Returns

the soundcard as GList

Since: 1.0.0


ags_distributed_manager_set_sequencer ()

void
ags_distributed_manager_set_sequencer (AgsDistributedManager *distributed_manager,
                                       gchar *client_uuid,
                                       GList *sequencer);

Sets the sequencer at client_uuid .

Parameters

distributed_manager

The AgsDistributedManager

 

client_uuid

the location to fetch from

 

sequencer

the sequencer to set

 

Since: 1.0.0


ags_distributed_manager_get_sequencer ()

GList *
ags_distributed_manager_get_sequencer (AgsDistributedManager *distributed_manager,
                                       gchar *client_uuid);

Gets the sequencer of distributed_manager associated with client_uuid .

Parameters

client_uuid

the client uuid

 

distributed_manager

the AgsDistributedManager

 

Returns

the sequencer as GList

Since: 1.0.0


ags_distributed_manager_register_soundcard ()

GObject *
ags_distributed_manager_register_soundcard
                               (AgsDistributedManager *distributed_manager,
                                gboolean is_output);

Fetches soundcard of distributed_manager .

Parameters

distributed_manager

The AgsDistributedManager

 

is_output

if TRUE the used as sink, else as source

 

Returns

a new AgsSoundcard

Since: 1.0.0


ags_distributed_manager_unregister_soundcard ()

void
ags_distributed_manager_unregister_soundcard
                               (AgsDistributedManager *distributed_manager,
                                GObject *soundcard);

Releases soundcard in distributed_manager .

Parameters

distributed_manager

The AgsDistributedManager

 

soundcard

the AgsSoundcard

 

Since: 1.0.0


ags_distributed_manager_register_sequencer ()

GObject *
ags_distributed_manager_register_sequencer
                               (AgsDistributedManager *distributed_manager,
                                gboolean is_output);

Fetches sequencer of distributed_manager .

Parameters

distributed_manager

The AgsDistributedManager

 

is_output

if TRUE the used as sink, else as source

 

Returns

a new AgsSequencer

Since: 1.0.0


ags_distributed_manager_unregister_sequencer ()

void
ags_distributed_manager_unregister_sequencer
                               (AgsDistributedManager *distributed_manager,
                                GObject *sequencer);

Releases sequencer in distributed_manager .

Parameters

distributed_manager

The AgsDistributedManager

 

sequencer

the AgsSequencer

 

Since: 1.0.0


AGS_DISTRIBUTED_MANAGER()

#define AGS_DISTRIBUTED_MANAGER(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DISTRIBUTED_MANAGER, AgsDistributedManager))

AGS_DISTRIBUTED_MANAGER_GET_INTERFACE()

#define AGS_DISTRIBUTED_MANAGER_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_DISTRIBUTED_MANAGER, AgsDistributedManagerInterface))

AGS_DISTRIBUTED_MANAGER_INTERFACE()

#define AGS_DISTRIBUTED_MANAGER_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_DISTRIBUTED_MANAGER, AgsDistributedManagerInterface))

AGS_IS_DISTRIBUTED_MANAGER()

#define AGS_IS_DISTRIBUTED_MANAGER(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DISTRIBUTED_MANAGER))

AGS_IS_DISTRIBUTED_MANAGER_INTERFACE()

#define AGS_IS_DISTRIBUTED_MANAGER_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_DISTRIBUTED_MANAGER))

ags_distributed_manager_get_type ()

GType
ags_distributed_manager_get_type ();

Types and Values

AGS_TYPE_DISTRIBUTED_MANAGER

#define AGS_TYPE_DISTRIBUTED_MANAGER                    (ags_distributed_manager_get_type())

AgsDistributedManager

typedef struct _AgsDistributedManager AgsDistributedManager;

struct AgsDistributedManagerInterface

struct AgsDistributedManagerInterface {
  GTypeInterface ginterface;

  void (*set_url)(AgsDistributedManager *distributed_manager,
		  gchar *url);
  gchar* (*get_url)(AgsDistributedManager *distributed_manager);

  void (*set_ports)(AgsDistributedManager *distributed_manager,
		    guint *ports, guint port_count);
  guint* (*get_ports)(AgsDistributedManager *distributed_manager,
		      guint *port_count);
  
  void (*set_soundcard)(AgsDistributedManager *distributed_manager,
			gchar *client_uuid,
			GList *soundcard);
  GList* (*get_soundcard)(AgsDistributedManager *distributed_manager,
			  gchar *client_uuid);

  void (*set_sequencer)(AgsDistributedManager *distributed_manager,
			gchar *client_uuid,
			GList *sequencer);
  GList* (*get_sequencer)(AgsDistributedManager *distributed_manager,
			  gchar *client_uuid);

  GObject* (*register_soundcard)(AgsDistributedManager *distributed_manager,
				 gboolean is_output);
  void (*unregister_soundcard)(AgsDistributedManager *distributed_manager,
			       GObject *soundcard);

  GObject* (*register_sequencer)(AgsDistributedManager *distributed_manager,
				 gboolean is_output);
  void (*unregister_sequencer)(AgsDistributedManager *distributed_manager,
			       GObject *sequencer);
};