aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-history-item.h
blob: 0e26f155ebfc9f0fbc0fd8fec0a7df4212e06bb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef __MOZILLA_HISTORY_ITEM_H__
#define __MOZILLA_HISTORY_ITEM_H__

#include <glib.h>
#include <glib-object.h>

#include "mozilla-embed.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))

typedef struct _MozillaHistoryItem      MozillaHistoryItem;
typedef struct _MozillaHistoryItemClass MozillaHistoryItemClass;

struct _MozillaHistoryItemClass
{
  GObjectClass parent_class;
};

struct _MozillaHistoryItem
{
  GObject parent_instance;

  MozillaEmbed *embed;
  int nth;
};

GType               mozilla_history_item_get_type (void) G_GNUC_CONST;
MozillaHistoryItem *mozilla_history_item_new      (MozillaEmbed *embed, int index) G_GNUC_MALLOC;

G_END_DECLS

#endif /* __MOZILLA_HISTORY_ITEM_H__ */