diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-25 11:59:32 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-25 11:59:32 +0000 |
commit | 5563da141e1fd0474f1eeedb967209c55227abae (patch) | |
tree | 79edb6566aecd22050117f9728b17e40156fd093 /src/trg-client.h | |
parent | 4d57ef2197461c450aaaf79cdbb31b256ae0e81e (diff) |
issue 175. make some (incomplete) changes as per the GTK+ best practices document - mainly using a pointer in the public class to access the private object (on a few important classes for now) for performance, and don't use C99 (C99 comments or mixed declarations/statements).
Diffstat (limited to 'src/trg-client.h')
-rw-r--r-- | src/trg-client.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trg-client.h b/src/trg-client.h index d73a5a7..b57bb4e 100644 --- a/src/trg-client.h +++ b/src/trg-client.h @@ -74,6 +74,8 @@ typedef struct { gpointer cb_data; } trg_request; +typedef struct _TrgClientPrivate TrgClientPrivate; + G_BEGIN_DECLS #define TRG_TYPE_CLIENT trg_client_get_type() #define TRG_CLIENT(obj) \ @@ -88,6 +90,7 @@ G_BEGIN_DECLS (G_TYPE_INSTANCE_GET_CLASS ((obj), TRG_TYPE_CLIENT, TrgClientClass)) typedef struct { GObject parent; + TrgClientPrivate *priv; } TrgClient; typedef struct { @@ -160,4 +163,4 @@ void trg_client_inc_serial(TrgClient * tc); void trg_client_inc_connid(TrgClient * tc); G_END_DECLS -#endif // _TRG_CLIENT_H_ +#endif /* _TRG_CLIENT_H_ */ |