MidgardRepligard

MidgardRepligard

Synopsis

#include <midgard/midgard.h>

                    MidgardRepligard;
struct              MidgardRepligardClass;
MidgardRepligard *  midgard_repligard_new               (MidgardConnection *mgd);
gboolean            midgard_repligard_create_object_info
                                                        (MidgardRepligard *self,
                                                         MidgardObject *object,
                                                         GError **error);
gboolean            midgard_repligard_update_object_info
                                                        (MidgardRepligard *self,
                                                         MidgardObject *object,
                                                         guint action,
                                                         GError **error);

Object Hierarchy

  GObject
   +----MidgardDBObject
         +----MidgardRepligard

Properties

  "action"                   guint                 : Read / Write
  "reference"                gchar*                : Read / Write
  "type"                     gchar*                : Read / Write
  "workspace"                guint                 : Read / Write
  "workspaceoid"             guint                 : Read / Write

Description

Details

MidgardRepligard

typedef struct _MidgardRepligard MidgardRepligard;


struct MidgardRepligardClass

struct MidgardRepligardClass {
	MidgardDBObjectClass parent;
};


midgard_repligard_new ()

MidgardRepligard *  midgard_repligard_new               (MidgardConnection *mgd);

Simplified constructor.

mgd :

MidgardConnection instance

Returns :

MidgardRepligard instance

Since 10.05.5


midgard_repligard_create_object_info ()

gboolean            midgard_repligard_create_object_info
                                                        (MidgardRepligard *self,
                                                         MidgardObject *object,
                                                         GError **error);

For given object, creates replication record info.

self :

MidgardRepligard instance

object :

MidgardObject to create record info

error :

pointer to store error

Returns :

TRUE on success, FALSE otherwise

Since 10.05.5


midgard_repligard_update_object_info ()

gboolean            midgard_repligard_update_object_info
                                                        (MidgardRepligard *self,
                                                         MidgardObject *object,
                                                         guint action,
                                                         GError **error);

For given object, updates replication record info.

self :

MidgardRepligard instance

object :

MidgardObject to create record info

action :

action to set

error :

pointer to store error

Returns :

TRUE on success, FALSE otherwise

Since 10.05.5

Property Details

The "action" property

  "action"                   guint                 : Read / Write

Default value: 0


The "reference" property

  "reference"                gchar*                : Read / Write

Default value: ""


The "type" property

  "type"                     gchar*                : Read / Write

Default value: ""


The "workspace" property

  "workspace"                guint                 : Read / Write

Default value: 0


The "workspaceoid" property

  "workspaceoid"             guint                 : Read / Write

Default value: 0