diff options
Diffstat (limited to 'src/libotutil/ot-checksum-instream.h')
-rw-r--r-- | src/libotutil/ot-checksum-instream.h | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/src/libotutil/ot-checksum-instream.h b/src/libotutil/ot-checksum-instream.h index 643e4962..096d43c3 100644 --- a/src/libotutil/ot-checksum-instream.h +++ b/src/libotutil/ot-checksum-instream.h @@ -24,16 +24,20 @@ G_BEGIN_DECLS -#define OT_TYPE_CHECKSUM_INSTREAM (ot_checksum_instream_get_type ()) -#define OT_CHECKSUM_INSTREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), OT_TYPE_CHECKSUM_INPUT_STREAM, OtChecksumInstream)) -#define OT_CHECKSUM_INSTREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), OT_TYPE_CHECKSUM_INPUT_STREAM, OtChecksumInstreamClass)) -#define OT_IS_CHECKSUM_INSTREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), OT_TYPE_CHECKSUM_INPUT_STREAM)) -#define OT_IS_CHECKSUM_INSTREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OT_TYPE_CHECKSUM_INPUT_STREAM)) -#define OT_CHECKSUM_INSTREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), OT_TYPE_CHECKSUM_INPUT_STREAM, OtChecksumInstreamClass)) +#define OT_TYPE_CHECKSUM_INSTREAM (ot_checksum_instream_get_type ()) +#define OT_CHECKSUM_INSTREAM(o) \ + (G_TYPE_CHECK_INSTANCE_CAST ((o), OT_TYPE_CHECKSUM_INPUT_STREAM, OtChecksumInstream)) +#define OT_CHECKSUM_INSTREAM_CLASS(k) \ + (G_TYPE_CHECK_CLASS_CAST ((k), OT_TYPE_CHECKSUM_INPUT_STREAM, OtChecksumInstreamClass)) +#define OT_IS_CHECKSUM_INSTREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), OT_TYPE_CHECKSUM_INPUT_STREAM)) +#define OT_IS_CHECKSUM_INSTREAM_CLASS(k) \ + (G_TYPE_CHECK_CLASS_TYPE ((k), OT_TYPE_CHECKSUM_INPUT_STREAM)) +#define OT_CHECKSUM_INSTREAM_GET_CLASS(o) \ + (G_TYPE_INSTANCE_GET_CLASS ((o), OT_TYPE_CHECKSUM_INPUT_STREAM, OtChecksumInstreamClass)) -typedef struct _OtChecksumInstream OtChecksumInstream; -typedef struct _OtChecksumInstreamClass OtChecksumInstreamClass; -typedef struct _OtChecksumInstreamPrivate OtChecksumInstreamPrivate; +typedef struct _OtChecksumInstream OtChecksumInstream; +typedef struct _OtChecksumInstreamClass OtChecksumInstreamClass; +typedef struct _OtChecksumInstreamPrivate OtChecksumInstreamPrivate; struct _OtChecksumInstream { @@ -48,12 +52,13 @@ struct _OtChecksumInstreamClass GFilterInputStreamClass parent_class; }; -GType ot_checksum_instream_get_type (void) G_GNUC_CONST; +GType ot_checksum_instream_get_type (void) G_GNUC_CONST; -OtChecksumInstream * ot_checksum_instream_new (GInputStream *stream, GChecksumType checksum); -OtChecksumInstream * ot_checksum_instream_new_with_start (GInputStream *stream, GChecksumType checksum, - const guint8 *buf, size_t len); +OtChecksumInstream *ot_checksum_instream_new (GInputStream *stream, GChecksumType checksum); +OtChecksumInstream *ot_checksum_instream_new_with_start (GInputStream *stream, + GChecksumType checksum, const guint8 *buf, + size_t len); -char * ot_checksum_instream_get_string (OtChecksumInstream *stream); +char *ot_checksum_instream_get_string (OtChecksumInstream *stream); G_END_DECLS |