diff options
author | Xan Lopez <xan@src.gnome.org> | 2007-12-30 00:59:00 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2007-12-30 00:59:00 +0800 |
commit | eeecbfedf3b0a9c1bdf3f17981dc885603d268af (patch) | |
tree | 234bcc4502a23b530fdb57805e1ca330716396e9 /embed/mozilla/mozilla-history-item.h | |
parent | 845fb8717fa53f67893f5f4b17bbdb711e11da2f (diff) | |
download | gsoc2013-epiphany-eeecbfedf3b0a9c1bdf3f17981dc885603d268af.tar gsoc2013-epiphany-eeecbfedf3b0a9c1bdf3f17981dc885603d268af.tar.gz gsoc2013-epiphany-eeecbfedf3b0a9c1bdf3f17981dc885603d268af.tar.bz2 gsoc2013-epiphany-eeecbfedf3b0a9c1bdf3f17981dc885603d268af.tar.lz gsoc2013-epiphany-eeecbfedf3b0a9c1bdf3f17981dc885603d268af.tar.xz gsoc2013-epiphany-eeecbfedf3b0a9c1bdf3f17981dc885603d268af.tar.zst gsoc2013-epiphany-eeecbfedf3b0a9c1bdf3f17981dc885603d268af.zip |
Mozilla implementation of the embed history interfaces.
svn path=/trunk/; revision=7833
Diffstat (limited to 'embed/mozilla/mozilla-history-item.h')
-rw-r--r-- | embed/mozilla/mozilla-history-item.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-history-item.h b/embed/mozilla/mozilla-history-item.h new file mode 100644 index 000000000..270fb6f53 --- /dev/null +++ b/embed/mozilla/mozilla-history-item.h @@ -0,0 +1,39 @@ +#ifndef __MOZILLA_HISTORY_ITEM_H__ +#define __MOZILLA_HISTORY_ITEM_H__ + +#include <glib.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +#define MOZILLA_TYPE_HISTORY_ITEM (mozilla_history_item_get_type()) +#define MOZILLA_HISTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOZILLA_TYPE_HISTORY_ITEM, MozillaHistoryItem)) +#define MOZILLA_HISTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOZILLA_TYPE_HISTORY_ITEM, MozillaHistoryItemClass)) +#define MOZILLA_IS_HISTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MOZILLA_TYPE_HISTORY_ITEM)) +#define MOZILLA_IS_HISTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOZILLA_TYPE_HISTORY_ITEM)) +#define MOZILLA_HISTORY_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOZILLA_TYPE_HISTORY_ITEM, MozillaHistoryItemClass)) + +#define HISTORY_ITEM_INDEX_KEY "NTh" + +typedef struct _MozillaHistoryItem MozillaHistoryItem; +typedef struct _MozillaHistoryItemClass MozillaHistoryItemClass; + +struct _MozillaHistoryItemClass +{ + GObjectClass parent_class; +}; + +struct _MozillaHistoryItem +{ + GObject parent_instance; + + char *url; + char *title; +}; + +GType mozilla_history_item_get_type (void) G_GNUC_CONST; +MozillaHistoryItem *mozilla_history_item_new (const char *url, const char *title, int index) G_GNUC_MALLOC; + +G_END_DECLS + +#endif /* __MOZILLA_HISTORY_ITEM_H__ */ |