diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-01-17 19:04:32 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-01-17 19:44:59 +0100 |
commit | e0b5fcb1c513c8360dd41e005c124600e6b62e4a (patch) | |
tree | 942868ba6e89a85a02acd1b63f160c5abddb2734 /include | |
parent | 2b37f64de828377f48e9b5094528bcab4dfcc023 (diff) | |
download | msitools-e0b5fcb1c513c8360dd41e005c124600e6b62e4a.tar.gz msitools-e0b5fcb1c513c8360dd41e005c124600e6b62e4a.tar.xz msitools-e0b5fcb1c513c8360dd41e005c124600e6b62e4a.zip |
Generate GObject enum/flags types
Diffstat (limited to 'include')
-rw-r--r-- | include/libmsi-enums.h.etemplate | 37 | ||||
-rw-r--r-- | include/libmsi-types.h | 4 | ||||
-rw-r--r-- | include/libmsi.h | 1 |
3 files changed, 40 insertions, 2 deletions
diff --git a/include/libmsi-enums.h.etemplate b/include/libmsi-enums.h.etemplate new file mode 100644 index 0000000..442dc03 --- /dev/null +++ b/include/libmsi-enums.h.etemplate @@ -0,0 +1,37 @@ +/*** BEGIN file-header ***/ +/* + * Copyright (C) 2002,2003 Mike McCormack + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef LIBMSI_ENUMS_H +#define LIBMSI_ENUMS_H + +#include <glib-object.h> + +G_BEGIN_DECLS +/*** END file-header ***/ + +/*** BEGIN value-header ***/ +GType @enum_name@_get_type (void) G_GNUC_CONST; +#define LIBMSI_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) +/*** END value-header ***/ + +/*** BEGIN file-tail ***/ +G_END_DECLS + +#endif +/*** END file-tail ***/ diff --git a/include/libmsi-types.h b/include/libmsi-types.h index 857393d..73edcf4 100644 --- a/include/libmsi-types.h +++ b/include/libmsi-types.h @@ -36,7 +36,7 @@ typedef struct _LibmsiSummaryInfo LibmsiSummaryInfo; typedef enum LibmsiResultError { - LIBMSI_RESULT_SUCCESS, // FIXME: remove me + LIBMSI_RESULT_SUCCESS, /* FIXME: remove me */ LIBMSI_RESULT_ACCESS_DENIED, LIBMSI_RESULT_INVALID_HANDLE, LIBMSI_RESULT_NOT_ENOUGH_MEMORY, @@ -82,7 +82,7 @@ typedef enum LibmsiColInfo typedef enum LibmsiDBError { - LIBMSI_DB_ERROR_SUCCESS, // FIXME: remove me + LIBMSI_DB_ERROR_SUCCESS, /* FIXME: remove me */ LIBMSI_DB_ERROR_INVALIDARG, LIBMSI_DB_ERROR_MOREDATA, LIBMSI_DB_ERROR_FUNCTIONERROR, diff --git a/include/libmsi.h b/include/libmsi.h index fc39237..44358b9 100644 --- a/include/libmsi.h +++ b/include/libmsi.h @@ -24,5 +24,6 @@ #include <libmsi-query.h> #include <libmsi-record.h> #include <libmsi-summary-info.h> +#include <libmsi-enums.h> #endif /* _LIBMSI_H */ |