public
Description: A Clutter-based Twitter client
Homepage: http://live.gnome.org/Tweet
Clone URL: git://github.com/ebassi/tweet.git
Search Repo:
Move TwitterUser and TwitterStatus definitions inside the common header

Some Twitter commands return a TwitterUser with a TwitterStatus inside;
some others return a TwitterStatus with a TwitterUser inside. To avoid
circular definitions, the objects definition must be moved inside a
common header that both twitter-status.h and twitter-user.h can include.

Since we already have twitter-common.h we can use that.
Emmanuele Bassi (author)
Fri Apr 11 02:48:11 -0700 2008
commit  29c9d24625fbf0ba9afaf779cff0ee2bc8a1131e
tree    a5b1495188d728c80c8d70ad9f55d181c438b4ee
parent  74b928afd6f3f8c29be07916fe2ec1ec2f587924
...
5
6
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
9
 
 
 
 
 
 
 
 
 
 
 
10
11
12
...
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
0
@@ -5,8 +5,74 @@
0
 
0
 G_BEGIN_DECLS
0
 
0
+/* TwitterUser */
0
+#define TWITTER_TYPE_USER (twitter_user_get_type ())
0
+#define TWITTER_USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TWITTER_TYPE_USER, TwitterUser))
0
+#define TWITTER_IS_USER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TWITTER_TYPE_USER))
0
+#define TWITTER_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TWITTER_TYPE_USER, TwitterUserClass))
0
+#define TWITTER_IS_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TWITTER_TYPE_USER))
0
+#define TWITTER_USER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TWITTER_TYPE_USER, TwitterUserClass))
0
+
0
+typedef struct _TwitterUser TwitterUser;
0
+typedef struct _TwitterUserPrivate TwitterUserPrivate;
0
+typedef struct _TwitterUserClass TwitterUserClass;
0
+
0
+struct _TwitterUser
0
+{
0
+ /*< private >*/
0
+ GInitiallyUnowned parent_instance;
0
+
0
+ TwitterUserPrivate *priv;
0
+};
0
+
0
+struct _TwitterUserClass
0
+{
0
+ /*< private >*/
0
+ GInitiallyUnownedClass parent_class;
0
+};
0
+
0
+/* TwitterStatus */
0
+#define TWITTER_TYPE_STATUS (twitter_status_get_type ())
0
+#define TWITTER_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TWITTER_TYPE_STATUS, TwitterStatus))
0
+#define TWITTER_IS_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TWITTER_TYPE_STATUS))
0
+#define TWITTER_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TWITTER_TYPE_STATUS, TwitterStatusClass))
0
+#define TWITTER_IS_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TWITTER_TYPE_STATUS))
0
+#define TWITTER_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TWITTER_TYPE_STATUS, TwitterStatusClass))
0
+
0
+typedef struct _TwitterStatus TwitterStatus;
0
+typedef struct _TwitterStatusPrivate TwitterStatusPrivate;
0
+typedef struct _TwitterStatusClass TwitterStatusClass;
0
+
0
+struct _TwitterStatus
0
+{
0
+ GInitiallyUnowned parent_instance;
0
+
0
+ TwitterStatusPrivate *priv;
0
+};
0
+
0
+struct _TwitterStatusClass
0
+{
0
+ GInitiallyUnownedClass parent_class;
0
+};
0
+
0
+/**
0
+ * TWITTER_ERROR:
0
+ *
0
+ * Twitter-GLib error domain.
0
+ */
0
 #define TWITTER_ERROR (twitter_error_quark ())
0
 
0
+/**
0
+ * TwitterError:
0
+ * @TWITTER_ERROR_HOST_NOT_FOUND:
0
+ * @TWITTER_ERROR_CANCELLED:
0
+ * @TWITTER_ERROR_PERMISSION_DENIED:
0
+ * @TWITTER_ERROR_NOT_FOUND:
0
+ * @TWITTER_ERROR_TIMED_OUT:
0
+ * @TWITTER_ERROR_FAILED:
0
+ *
0
+ * Twitter error enumeration.
0
+ */
0
 typedef enum {
0
   TWITTER_ERROR_HOST_NOT_FOUND,
0
   TWITTER_ERROR_CANCELLED,
...
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
...
2
3
4
 
 
5
6
7
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
10
11
12
0
@@ -2,33 +2,11 @@
0
 #define __TWITTER_POST_H__
0
 
0
 #include <glib-object.h>
0
-#include <json-glib/json-glib.h>
0
-#include <twitter-glib/twitter-user.h>
0
+#include <twitter-glib/twitter-common.h>
0
 
0
 G_BEGIN_DECLS
0
 
0
-#define TWITTER_TYPE_STATUS (twitter_status_get_type ())
0
-#define TWITTER_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TWITTER_TYPE_STATUS, TwitterStatus))
0
-#define TWITTER_IS_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TWITTER_TYPE_STATUS))
0
-#define TWITTER_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TWITTER_TYPE_STATUS, TwitterStatusClass))
0
-#define TWITTER_IS_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TWITTER_TYPE_STATUS))
0
-#define TWITTER_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TWITTER_TYPE_STATUS, TwitterStatusClass))
0
-
0
-typedef struct _TwitterStatus TwitterStatus;
0
-typedef struct _TwitterStatusPrivate TwitterStatusPrivate;
0
-typedef struct _TwitterStatusClass TwitterStatusClass;
0
-
0
-struct _TwitterStatus
0
-{
0
- GInitiallyUnowned parent_instance;
0
-
0
- TwitterStatusPrivate *priv;
0
-};
0
-
0
-struct _TwitterStatusClass
0
-{
0
- GInitiallyUnownedClass parent_class;
0
-};
0
+/* TwitterStatus is declared inside twitter-common.h */
0
 
0
 GType twitter_status_get_type (void) G_GNUC_CONST;
0
 
...
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
...
2
3
4
 
5
6
7
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
10
11
12
0
@@ -2,32 +2,11 @@
0
 #define __TWITTER_USER_H__
0
 
0
 #include <glib-object.h>
0
-#include <json-glib/json-glib.h>
0
+#include <twitter-glib/twitter-common.h>
0
 
0
 G_BEGIN_DECLS
0
 
0
-#define TWITTER_TYPE_USER (twitter_user_get_type ())
0
-#define TWITTER_USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TWITTER_TYPE_USER, TwitterUser))
0
-#define TWITTER_IS_USER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TWITTER_TYPE_USER))
0
-#define TWITTER_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TWITTER_TYPE_USER, TwitterUserClass))
0
-#define TWITTER_IS_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TWITTER_TYPE_USER))
0
-#define TWITTER_USER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TWITTER_TYPE_USER, TwitterUserClass))
0
-
0
-typedef struct _TwitterUser TwitterUser;
0
-typedef struct _TwitterUserPrivate TwitterUserPrivate;
0
-typedef struct _TwitterUserClass TwitterUserClass;
0
-
0
-struct _TwitterUser
0
-{
0
- GInitiallyUnowned parent_instance;
0
-
0
- TwitterUserPrivate *priv;
0
-};
0
-
0
-struct _TwitterUserClass
0
-{
0
- GInitiallyUnownedClass parent_class;
0
-};
0
+/* TwitterUser is declared inside twitter-common.h */
0
 
0
 GType twitter_user_get_type (void) G_GNUC_CONST;
0
 

Comments

    No one has commented yet.