diff options
| author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-12-10 00:01:22 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-11 11:23:19 +0100 |
| commit | ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b (patch) | |
| tree | 76012c4f3d176b748961c24f96e87724804f260a /include/libmsi-query.h | |
| parent | 0ffc9bc6e55b5e42766e68fb6cc087f6cbead6e0 (diff) | |
convert to GObject
Diffstat (limited to 'include/libmsi-query.h')
| -rw-r--r-- | include/libmsi-query.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/libmsi-query.h b/include/libmsi-query.h index e473769..673f0cb 100644 --- a/include/libmsi-query.h +++ b/include/libmsi-query.h @@ -19,12 +19,37 @@ #ifndef _LIBMSI_QUERY_H #define _LIBMSI_QUERY_H +#include <glib-object.h> + #include "libmsi-types.h" +G_BEGIN_DECLS + +#define LIBMSI_TYPE_QUERY (libmsi_query_get_type ()) +#define LIBMSI_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBMSI_TYPE_QUERY, LibmsiQuery)) +#define LIBMSI_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBMSI_TYPE_QUERY, LibmsiQueryClass)) +#define LIBMSI_IS_QUERY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBMSI_TYPE_QUERY)) +#define LIBMSI_IS_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBMSI_TYPE_QUERY)) +#define LIBMSI_QUERY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBMSI_TYPE_QUERY, LibmsiQueryClass)) + +typedef struct _LibmsiQueryClass LibmsiQueryClass; + +struct _LibmsiQueryClass +{ + GObjectClass parent_class; +}; + +GType libmsi_query_get_type (void) G_GNUC_CONST; + + +LibmsiQuery * libmsi_query_new (LibmsiDatabase *database, const char *query, GError **error); + LibmsiResult libmsi_query_fetch (LibmsiQuery *,LibmsiRecord **); LibmsiResult libmsi_query_execute (LibmsiQuery *,LibmsiRecord *); LibmsiResult libmsi_query_close (LibmsiQuery *); LibmsiDBError libmsi_query_get_error (LibmsiQuery *,char *,unsigned *); LibmsiResult libmsi_query_get_column_info (LibmsiQuery *, LibmsiColInfo, LibmsiRecord **); +G_END_DECLS + #endif /* _LIBMSI_QUERY_H */ |
