diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2010-09-17 19:16:53 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2010-09-19 19:12:36 +0200 |
commit | 354e54826fdb492d1ac4b43433b1169bf989b6eb (patch) | |
tree | 84a3ed092ed032b1700666e9902d583f1fe4a02f /src/ld-document.h | |
parent | 341f51eb415c98c201b7744cea9ebc1fff321ad4 (diff) | |
download | logdiag-354e54826fdb492d1ac4b43433b1169bf989b6eb.tar.gz logdiag-354e54826fdb492d1ac4b43433b1169bf989b6eb.tar.xz logdiag-354e54826fdb492d1ac4b43433b1169bf989b6eb.zip |
Changed the object prefix from "logdiag" to "ld".
It was just too long to type and read. My mistake.
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__ */ + |