AgsConnectionManager

AgsConnectionManager — Singleton pattern to organize connections

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── AgsConnectionManager

Includes

#include <ags/object/ags_connection_manager.h>

Description

The AgsConnectionManager manages your connections.

Functions

ags_connection_manager_get_connection ()

GList *
ags_connection_manager_get_connection (AgsConnectionManager *connection_manager);

ags_connection_manager_add_connection ()

void
ags_connection_manager_add_connection (AgsConnectionManager *connection_manager,
                                       AgsConnection *connection);

Add an AgsConnection to connection_manager .

Parameters

connection_manager

the AgsConnectionManager

 

connection

the AgsConnection

 

Since: 1.0.0


ags_connection_manager_remove_connection ()

void
ags_connection_manager_remove_connection
                               (AgsConnectionManager *connection_manager,
                                AgsConnection *connection);

Remove an AgsConnection from connection_manager .

Parameters

connection_manager

the AgsConnectionManager

 

connection

the AgsConnection

 

Since: 1.0.0


ags_connection_manager_get_instance ()

AgsConnectionManager *
ags_connection_manager_get_instance ();

Get instance.

Returns

the AgsConnectionManager

Since: 1.0.0


ags_connection_manager_new ()

AgsConnectionManager *
ags_connection_manager_new ();

Creates an AgsConnectionManager

Returns

a new AgsConnectionManager

Since: 1.0.0


AGS_CONNECTION_MANAGER()

#define AGS_CONNECTION_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CONNECTION_MANAGER, AgsConnectionManager))

AGS_CONNECTION_MANAGER_CLASS()

#define AGS_CONNECTION_MANAGER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CONNECTION_MANAGER, AgsConnectionManagerClass))

AGS_CONNECTION_MANAGER_GET_CLASS()

#define AGS_CONNECTION_MANAGER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_CONNECTION_MANAGER, AgsConnectionManagerClass))

AGS_IS_CONNECTION_MANAGER()

#define AGS_IS_CONNECTION_MANAGER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CONNECTION_MANAGER))

ags_connection_manager_get_type ()

GType
ags_connection_manager_get_type (void);

Types and Values

AGS_TYPE_CONNECTION_MANAGER

#define AGS_TYPE_CONNECTION_MANAGER                (ags_connection_manager_get_type())

struct AgsConnectionManager

struct AgsConnectionManager;

struct AgsConnectionManagerClass

struct AgsConnectionManagerClass {
  GObjectClass object;
};