AgsConnection

AgsConnection — Abstraction of connections

Functions

Properties

GObject * data-object Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsConnection

Includes

#include <ags/object/ags_connection.h>

Description

The AgsConnection provides you a data object and you might want to use it in conjunction with AgsConnectable to get connect with its scope.

Functions

ags_connection_find_type ()

GList *
ags_connection_find_type (GList *connection,
                          GType connection_type);

Find next matching type within connection .

Parameters

connection

the GList to search

 

connection_type

the GType to find

 

Returns

a matching GList

Since: 1.0.0


ags_connection_find_type_and_data_object_type ()

GList *
ags_connection_find_type_and_data_object_type
                               (GList *connection,
                                GType connection_type,
                                GType data_object_type);

Find next matching connection_type and data_object_type within connection .

Parameters

connection

the GList to search

 

connection_type

the GType to find

 

data_object_type

the GType to find

 

Returns

a matching GList

Since: 1.0.0


ags_connection_new ()

AgsConnection *
ags_connection_new ();

Creates an AgsConnection

Returns

a new AgsConnection

Since: 1.0.0


AGS_CONNECTION()

#define AGS_CONNECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CONNECTION, AgsConnection))

AGS_CONNECTION_CLASS()

#define AGS_CONNECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CONNECTION, AgsConnectionClass))

AGS_CONNECTION_GET_CLASS()

#define AGS_CONNECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_CONNECTION, AgsConnectionClass))

AGS_IS_CONNECTION()

#define AGS_IS_CONNECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CONNECTION))

ags_connection_get_type ()

GType
ags_connection_get_type (void);

Types and Values

AGS_TYPE_CONNECTION

#define AGS_TYPE_CONNECTION                (ags_connection_get_type())

struct AgsConnection

struct AgsConnection;

struct AgsConnectionClass

struct AgsConnectionClass {
  GObjectClass object;
};

Property Details

The “data-object” property

  “data-object”              GObject *

The assigned GObject acting as data object.

Flags: Read / Write

Since: 1.0.0