AgsLocalSerializationController

AgsLocalSerializationController — local serialization controller

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsLocalSerializationController

Includes

#include <ags/server/controller/ags_local_serialization_controller.h>

Description

The AgsLocalSerializationController is a controller.

Functions

ags_local_serialization_controller_send_object ()

gpointer
ags_local_serialization_controller_send_object
                               (AgsLocalSerializationController *local_serialization_controller,
                                GObject *gobject);

Send object.

Parameters

local_serialization_controller

the AgsLocalSerializationController

 

gobject

the GObject to send

 

Returns

the response

Since: 1.0.0


ags_local_serialization_controller_send_object_property ()

gpointer
ags_local_serialization_controller_send_object_property
                               (AgsLocalSerializationController *local_serialization_controller,
                                GObject *gobject,
                                gchar **property_name);

Send object property.

Parameters

local_serialization_controller

the AgsLocalSerializationController

 

gobject

the GObject containing the properties to send

 

property_name

the property names as NULL terminated string vector

 

Returns

the response

Since: 1.0.0


ags_local_serialization_controller_receive_object ()

gpointer
ags_local_serialization_controller_receive_object
                               (AgsLocalSerializationController *local_serialization_controller,
                                gchar *str);

Receive object.

Parameters

local_serialization_controller

the AgsLocalSerializationController

 

str

the string representation of the object

 

Returns

the response

Since: 1.0.0


ags_local_serialization_controller_receive_object_property ()

gpointer
ags_local_serialization_controller_receive_object_property
                               (AgsLocalSerializationController *local_serialization_controller,
                                gchar *object_id,
                                gchar *str);

Receive object.

Parameters

local_serialization_controller

the AgsLocalSerializationController

 

object_id

the id of the object to set the properties

 

str

the string representation of the object properties

 

Returns

the response

Since: 1.0.0


ags_local_serialization_controller_new ()

AgsLocalSerializationController *
ags_local_serialization_controller_new
                               ();

Instantiate new AgsLocalSerializationController

Since: 1.0.0


AGS_IS_LOCAL_SERIALIZATION_CONTROLLER()

#define AGS_IS_LOCAL_SERIALIZATION_CONTROLLER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOCAL_SERIALIZATION_CONTROLLER))

AGS_LOCAL_SERIALIZATION_CONTROLLER()

#define AGS_LOCAL_SERIALIZATION_CONTROLLER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOCAL_SERIALIZATION_CONTROLLER, AgsLocalSerializationController))

AGS_LOCAL_SERIALIZATION_CONTROLLER_CLASS()

#define AGS_LOCAL_SERIALIZATION_CONTROLLER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LOCAL_SERIALIZATION_CONTROLLER, AgsLocalSerializationControllerClass))

AGS_LOCAL_SERIALIZATION_CONTROLLER_GET_CLASS()

#define AGS_LOCAL_SERIALIZATION_CONTROLLER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_LOCAL_SERIALIZATION_CONTROLLER, AgsLocalSerializationControllerClass))

ags_local_serialization_controller_get_type ()

GType
ags_local_serialization_controller_get_type
                               ();

Types and Values

AGS_LOCAL_SERIALIZATION_CONTROLLER_CONTEXT_PATH

#define AGS_LOCAL_SERIALIZATION_CONTROLLER_CONTEXT_PATH "serialization"

AGS_TYPE_LOCAL_SERIALIZATION_CONTROLLER

#define AGS_TYPE_LOCAL_SERIALIZATION_CONTROLLER                (ags_local_serialization_controller_get_type())

struct AgsLocalSerializationController

struct AgsLocalSerializationController;

struct AgsLocalSerializationControllerClass

struct AgsLocalSerializationControllerClass {
  AgsControllerClass controller;

  gpointer (*send_object)(AgsLocalSerializationController *local_serialization_controller,
			  GObject *gobject);
  gpointer (*send_object_property)(AgsLocalSerializationController *local_serialization_controller,
				   GObject *gobject, gchar **property_name);
  
  gpointer (*receive_object)(AgsLocalSerializationController *local_serialization_controller,
			     gchar *str);
  gpointer (*receive_object_property)(AgsLocalSerializationController *local_serialization_controller,
				      gchar *object_id, gchar *str);
};

Signal Details

The “receive-object” signal

gpointer
user_function (AgsLocalSerializationController *local_serialization_controller,
               GObject                         *str,
               gpointer                         user_data)

The ::receive-object signal is used to receive a serialized object.

Parameters

local_serialization_controller

the AgsLocalSerializationController

 

str

the string representation of the object

 

user_data

user data set when the signal handler was connected.

 

Returns

the response

Flags: Run Last

Since: 1.0.0


The “receive-object-property” signal

gpointer
user_function (AgsLocalSerializationController *local_serialization_controller,
               GObject                         *object_id,
               gpointer                         str,
               gpointer                         user_data)

The ::receive-object-property signal is used to receive a serialized object properties.

Parameters

local_serialization_controller

the AgsLocalSerializationController

 

object_id

the object's id

 

str

the string representation of the properties

 

user_data

user data set when the signal handler was connected.

 

Returns

the response

Flags: Run Last

Since: 1.0.0


The “send-object” signal

gpointer
user_function (AgsLocalSerializationController *local_serialization_controller,
               GObject                         *gobject,
               gpointer                         user_data)

The ::send-object signal is used to send a serialized object.

Parameters

local_serialization_controller

the AgsLocalSerializationController

 

gobject

the GObject to send

 

user_data

user data set when the signal handler was connected.

 

Returns

the response

Flags: Run Last

Since: 1.0.0


The “send-object-property” signal

gpointer
user_function (AgsLocalSerializationController *local_serialization_controller,
               GObject                         *gobject,
               gpointer                         property_name,
               gpointer                         user_data)

The ::send-object-property signal is used to send a serialized object properties.

Parameters

local_serialization_controller

the AgsLocalSerializationController

 

gobject

the GObject to send

 

property_name

a NULL terminated string vector containing property names

 

user_data

user data set when the signal handler was connected.

 

Returns

the response

Flags: Run Last

Since: 1.0.0