diff options
Diffstat (limited to 'src/ld-document.h')
-rw-r--r-- | src/ld-document.h | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/src/ld-document.h b/src/ld-document.h index b40db52..999a423 100644 --- a/src/ld-document.h +++ b/src/ld-document.h @@ -8,33 +8,33 @@ * */ -#ifndef __DOCUMENT_H__ -#define __DOCUMENT_H__ +#ifndef __LD_DOCUMENT_H__ +#define __LD_DOCUMENT_H__ G_BEGIN_DECLS -#define LOGDIAG_TYPE_DOCUMENT (logdiag_symbol_library_get_type ()) -#define LOGDIAG_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST \ - ((obj), LOGDIAG_TYPE_DOCUMENT, LogdiagDocument)) -#define LOGDIAG_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST \ - ((klass), LOGDIAG_TYPE_DOCUMENT, LogdiagDocumentClass)) -#define LOGDIAG_IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE \ - ((obj), LOGDIAG_TYPE_DOCUMENT)) -#define LOGDIAG_IS_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_INSTANCE_TYPE \ - ((klass), LOGDIAG_TYPE_DOCUMENT)) -#define LOGDIAG_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS \ - ((obj), LOGDIAG_DOCUMENT, LogdiagDocumentClass)) +#define LD_TYPE_DOCUMENT (ld_symbol_library_get_type ()) +#define LD_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), LD_TYPE_DOCUMENT, LdDocument)) +#define LD_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST \ + ((klass), LD_TYPE_DOCUMENT, LdDocumentClass)) +#define LD_IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), LD_TYPE_DOCUMENT)) +#define LD_IS_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_INSTANCE_TYPE \ + ((klass), LD_TYPE_DOCUMENT)) +#define LD_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), LD_DOCUMENT, LdDocumentClass)) -typedef struct _LogdiagDocument LogdiagDocument; -/*typedef struct _LogdiagDocumentPrivate LogdiagDocumentPrivate;*/ -typedef struct _LogdiagDocumentClass LogdiagDocumentClass; +typedef struct _LdDocument LdDocument; +/*typedef struct _LdDocumentPrivate LdDocumentPrivate;*/ +typedef struct _LdDocumentClass LdDocumentClass; /** - * LogdiagDocument: + * LdDocument: */ -struct _LogdiagDocument +struct _LdDocument { /*< private >*/ GObject parent_instance; @@ -42,24 +42,24 @@ struct _LogdiagDocument /*< public >*/ }; -struct _LogdiagDocumentClass +struct _LdDocumentClass { GObjectClass parent_class; }; -GType logdiag_document_get_type (void) G_GNUC_CONST; +GType ld_document_get_type (void) G_GNUC_CONST; -LogdiagDocument *logdiag_document_new (void); -gboolean logdiag_document_new_from_file (const char *file_name, GError *error); -gboolean logdiag_document_save_to_file (const char *file_name, GError *error); +LdDocument *ld_document_new (void); +gboolean ld_document_new_from_file (const char *file_name, GError *error); +gboolean ld_document_save_to_file (const char *file_name, GError *error); #if 0 /* - * LogdiagDocumentPrivate: + * LdDocumentPrivate: * @objects: All the objects in the document. */ -struct _LogdiagDocumentPrivate +struct _LdDocumentPrivate { GSList *objects; }; @@ -68,24 +68,25 @@ struct _LogdiagDocumentPrivate signal documentChanged (...); /* TODO: A list of objects: */ -LogdiagDocumentSymbol -LogdiagDocumentLabel +LdDocumentSymbol +LdDocumentLabel -logdiag_document_add_symbol (LogdiagSymbol *symbol, x, y); +ld_document_add_symbol (LdSymbol *symbol, x, y); /* XXX: Separated lists of objects * or a single list for all objects? */ /* TODO: Wires. */ -logdiag_document_selection_... -logdiag_document_selection_get_json (LogdiagDocument *self); -logdiag_document_insert_json (LogdiagDocument *self); +ld_document_selection_... +ld_document_selection_get_json (LdDocument *self); +ld_document_insert_json (LdDocument *self); /** Go back or forward in the history of changes. */ /* TODO: An interface that informs about the history. */ -logdiag_document_history_go (LogdiagDocument *self); +ld_document_history_go (LdDocument *self); #endif /* 0 */ G_END_DECLS -#endif /* ! __DOCUMENT_H__ */ +#endif /* ! __LD_DOCUMENT_H__ */ + |