diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-07-19 08:41:04 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-07-19 08:41:04 -0400 |
commit | 299b166ff820e8413f0c34ed5a2e7afac46cd477 (patch) | |
tree | b0b8e1520af740e8a63fd132ebae82326054e12f /signalobject.h |
initial commit
Diffstat (limited to 'signalobject.h')
-rw-r--r-- | signalobject.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/signalobject.h b/signalobject.h new file mode 100644 index 0000000..dedb9b8 --- /dev/null +++ b/signalobject.h @@ -0,0 +1,42 @@ +#ifndef SIGNAL_OBJECT_H +#define SIGNAL_OBJECT_H + +#include <gio/gio.h> +#include <glibconfig.h> +#include <glib.h> + + +#define SIGNAL_OBJECT_TYPE (signal_object_get_type ()) +/* +#define MAMAN_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAMAN_TYPE_BAR, MamanBar)) +#define MAMAN_IS_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MAMAN_TYPE_BAR)) +#define MAMAN_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MAMAN_TYPE_BAR, MamanBarClass)) +#define MAMAN_IS_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MAMAN_TYPE_BAR)) +#define MAMAN_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MAMAN_TYPE_BAR, MamanBarClass)) +*/ + +typedef struct _SignalObject SignalObject; +typedef struct _SignalObjectClass SignalObjectClass; + + +struct _SignalObject { + GObject parentInstance; + gpointer instance; + gssize (*cb)(GPollableOutputStream* stream, gchar* data, gssize size); + GPollableInputStream* inStream; + GPollableOutputStream* outStream; + gchar* data; + gssize size; +}; + +struct _SignalObjectClass { + GObjectClass parent_class; + gpointer instance; + gssize (*cb)(GPollableOutputStream* stream, gchar* data, gssize size); + GPollableInputStream* inStream; + GPollableOutputStream* outStream; + gchar* data; + gssize size; +}; + +#endif |