summaryrefslogtreecommitdiffstats
path: root/libmsi/drop.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-23 11:42:15 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-06 20:30:28 +0100
commit9ad11a6d7c458dbcd5784955ff2f8f5a4256a4fc (patch)
tree9e1843ea3d8410d027580a7a1208164dc661bdb3 /libmsi/drop.c
parent99336e77ba153c8cf1175951ff2239d6ce422c91 (diff)
downloadmsitools-9ad11a6d7c458dbcd5784955ff2f8f5a4256a4fc.tar.gz
msitools-9ad11a6d7c458dbcd5784955ff2f8f5a4256a4fc.tar.xz
msitools-9ad11a6d7c458dbcd5784955ff2f8f5a4256a4fc.zip
ok, things start to be readable
fix
Diffstat (limited to 'libmsi/drop.c')
-rw-r--r--libmsi/drop.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/libmsi/drop.c b/libmsi/drop.c
index 69cc32f..544635c 100644
--- a/libmsi/drop.c
+++ b/libmsi/drop.c
@@ -32,18 +32,18 @@
#include "query.h"
-typedef struct tagMSIDROPVIEW
+typedef struct LibmsiDropView
{
- MSIVIEW view;
- MSIDATABASE *db;
- MSIVIEW *table;
+ LibmsiView view;
+ LibmsiDatabase *db;
+ LibmsiView *table;
column_info *colinfo;
int hold;
-} MSIDROPVIEW;
+} LibmsiDropView;
-static unsigned DROP_execute(MSIVIEW *view, MSIRECORD *record)
+static unsigned DROP_execute(LibmsiView *view, LibmsiRecord *record)
{
- MSIDROPVIEW *dv = (MSIDROPVIEW*)view;
+ LibmsiDropView *dv = (LibmsiDropView*)view;
unsigned r;
TRACE("%p %p\n", dv, record);
@@ -58,27 +58,27 @@ static unsigned DROP_execute(MSIVIEW *view, MSIRECORD *record)
return dv->table->ops->drop(dv->table);
}
-static unsigned DROP_close(MSIVIEW *view)
+static unsigned DROP_close(LibmsiView *view)
{
- MSIDROPVIEW *dv = (MSIDROPVIEW*)view;
+ LibmsiDropView *dv = (LibmsiDropView*)view;
TRACE("%p\n", dv);
return ERROR_SUCCESS;
}
-static unsigned DROP_get_dimensions(MSIVIEW *view, unsigned *rows, unsigned *cols)
+static unsigned DROP_get_dimensions(LibmsiView *view, unsigned *rows, unsigned *cols)
{
- MSIDROPVIEW *dv = (MSIDROPVIEW*)view;
+ LibmsiDropView *dv = (LibmsiDropView*)view;
TRACE("%p %p %p\n", dv, rows, cols);
return ERROR_FUNCTION_FAILED;
}
-static unsigned DROP_delete( MSIVIEW *view )
+static unsigned DROP_delete( LibmsiView *view )
{
- MSIDROPVIEW *dv = (MSIDROPVIEW*)view;
+ LibmsiDropView *dv = (LibmsiDropView*)view;
TRACE("%p\n", dv );
@@ -90,7 +90,7 @@ static unsigned DROP_delete( MSIVIEW *view )
return ERROR_SUCCESS;
}
-static const MSIVIEWOPS drop_ops =
+static const LibmsiViewOPS drop_ops =
{
NULL,
NULL,
@@ -113,9 +113,9 @@ static const MSIVIEWOPS drop_ops =
NULL,
};
-unsigned DROP_CreateView(MSIDATABASE *db, MSIVIEW **view, const WCHAR *name)
+unsigned DROP_CreateView(LibmsiDatabase *db, LibmsiView **view, const WCHAR *name)
{
- MSIDROPVIEW *dv;
+ LibmsiDropView *dv;
unsigned r;
TRACE("%p %s\n", view, debugstr_w(name));
@@ -134,7 +134,7 @@ unsigned DROP_CreateView(MSIDATABASE *db, MSIVIEW **view, const WCHAR *name)
dv->view.ops = &drop_ops;
dv->db = db;
- *view = (MSIVIEW *)dv;
+ *view = (LibmsiView *)dv;
return ERROR_SUCCESS;
}