AgsFileIdRef

AgsFileIdRef — file id reference

Synopsis

#include <ags/file/ags_file_id_ref.h>

#define             AGS_FILE_ID_REF_RESOLVE_DATA
#define             AGS_FILE_ID_REF_SERIALIZE_DATA
#define             AGS_FILE_RESOLVE                    (f)
struct              AgsFileIdRef;
struct              AgsFileIdRefClass;
void                (*AgsFileResolve)                   (void);
AgsFileIdRef *      ags_file_id_ref_new                 ();
void                ags_file_id_ref_resolved            (AgsFileIdRef *file_id_ref);

Description

The AgsFileIdRef referes a XML node by its ID. It's used to perform XPath lookup.

Details

AGS_FILE_ID_REF_RESOLVE_DATA

#define AGS_FILE_ID_REF_RESOLVE_DATA "ags-file-id-ref-resolve-data\0"

AGS_FILE_ID_REF_SERIALIZE_DATA

#define AGS_FILE_ID_REF_SERIALIZE_DATA "ags-file-id-ref-serizalize-data\0"

AGS_FILE_RESOLVE()

#define AGS_FILE_RESOLVE(f)          ((AgsFileResolve)(f))

struct AgsFileIdRef

struct AgsFileIdRef {
  GObject object;

  GObject *ags_main;
  GObject *file;

  xmlNode *node;
  gchar *xpath;
  gpointer ref;
};

struct AgsFileIdRefClass

struct AgsFileIdRefClass {
  GObjectClass object;

  void (*resolved)(AgsFileIdRef *file_id_ref);
};

AgsFileResolve ()

void                (*AgsFileResolve)                   (void);

ags_file_id_ref_new ()

AgsFileIdRef *      ags_file_id_ref_new                 ();

Creates an AgsFileIdRef

Returns :

a new AgsFileIdRef

Since 0.4


ags_file_id_ref_resolved ()

void                ags_file_id_ref_resolved            (AgsFileIdRef *file_id_ref);