From 6b7407cb031cf245a4998d8c79009039ead38fc5 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Sun, 9 Dec 2012 23:35:30 +0100 Subject: Split libmsi.h to be more gobject-like --- include/libmsi-database.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 include/libmsi-database.h (limited to 'include/libmsi-database.h') diff --git a/include/libmsi-database.h b/include/libmsi-database.h new file mode 100644 index 0000000..a8199ab --- /dev/null +++ b/include/libmsi-database.h @@ -0,0 +1,36 @@ +/* + * 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_DATABASE_H +#define _LIBMSI_DATABASE_H + +#include "libmsi-types.h" + +LibmsiResult libmsi_database_open (const char *, const char *, LibmsiDatabase **); +LibmsiResult libmsi_database_open_query (LibmsiDatabase *,const char *,LibmsiQuery **); +LibmsiDBState libmsi_database_get_state (LibmsiDatabase *); +LibmsiResult libmsi_database_get_primary_keys (LibmsiDatabase *,const char *,LibmsiRecord **); +LibmsiResult libmsi_database_apply_transform (LibmsiDatabase *,const char *,int); +LibmsiResult libmsi_database_export (LibmsiDatabase *, const char *, int fd); +LibmsiResult libmsi_database_import (LibmsiDatabase *, const char *, const char *); +LibmsiCondition libmsi_database_is_table_persistent (LibmsiDatabase *, const char *); +LibmsiResult libmsi_database_merge (LibmsiDatabase *, LibmsiDatabase *, const char *); +LibmsiResult libmsi_database_get_summary_info (LibmsiDatabase *, unsigned, LibmsiSummaryInfo **); +LibmsiResult libmsi_database_commit (LibmsiDatabase *); + +#endif /* _LIBMSI_DATABASE_H */ -- cgit