MidgardModelReference

MidgardModelReference

Synopsis

                    MidgardModelReference;
const gchar *       midgard_model_reference_get_id      (MidgardModelReference *self,
                                                         GError **error);
GValue *            midgard_model_reference_get_id_value
                                                        (MidgardModelReference *self,
                                                         GError **error);

Object Hierarchy

  GInterface
   +----MidgardModelReference

Prerequisites

MidgardModelReference requires MidgardModel and GObject.

Known Implementations

MidgardModelReference is implemented by MidgardObjectReference.

Description

Details

MidgardModelReference

typedef struct _MidgardModelReference MidgardModelReference;


midgard_model_reference_get_id ()

const gchar *       midgard_model_reference_get_id      (MidgardModelReference *self,
                                                         GError **error);

self :

MidgardModelReference instance

error :

pointer to store returned error

Returns :

Unique id of the model, or NULL in case of error

Since 12.09


midgard_model_reference_get_id_value ()

GValue *            midgard_model_reference_get_id_value
                                                        (MidgardModelReference *self,
                                                         GError **error);

The purpose of this method is to return generic GValue which can hold either string or integer id.

self :

MidgardModelReference instance

error :

pointer to store returned error

Returns :

New GValue which holds id of the model, or NULL in case of error.

Since 12.09