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-10 17:35:57 +0100 |
| commit | 92243bbcde2f22b3ada7b665acc70382de369ddb (patch) | |
| tree | 3cc1a64d9fedd71cfc8a82242649066ed33531f3 /libmsi | |
| parent | 6b7407cb031cf245a4998d8c79009039ead38fc5 (diff) | |
| download | msitools-92243bbcde2f22b3ada7b665acc70382de369ddb.tar.gz msitools-92243bbcde2f22b3ada7b665acc70382de369ddb.tar.xz msitools-92243bbcde2f22b3ada7b665acc70382de369ddb.zip | |
Rename libmsi_record_create() to libmsi_record_new()
Diffstat (limited to 'libmsi')
| -rw-r--r-- | libmsi/insert.c | 4 | ||||
| -rw-r--r-- | libmsi/libmsi-database.c | 4 | ||||
| -rw-r--r-- | libmsi/libmsi-query.c | 4 | ||||
| -rw-r--r-- | libmsi/libmsi-record.c | 4 | ||||
| -rw-r--r-- | libmsi/msipriv.h | 2 | ||||
| -rw-r--r-- | libmsi/select.c | 4 | ||||
| -rw-r--r-- | libmsi/table.c | 14 | ||||
| -rw-r--r-- | libmsi/update.c | 2 | ||||
| -rw-r--r-- | libmsi/where.c | 2 |
9 files changed, 20 insertions, 20 deletions
diff --git a/libmsi/insert.c b/libmsi/insert.c index c18b4db..777fc48 100644 --- a/libmsi/insert.c +++ b/libmsi/insert.c @@ -67,7 +67,7 @@ LibmsiRecord *msi_query_merge_record( unsigned fields, const column_info *vl, Li LibmsiRecord *merged; unsigned wildcard_count = 1, i; - merged = libmsi_record_create( fields ); + merged = libmsi_record_new( fields ); for( i=1; i <= fields; i++ ) { if( !vl ) @@ -144,7 +144,7 @@ static unsigned msi_arrange_record(LibmsiInsertView *iv, LibmsiRecord **values) if (col_count == val_count && msi_columns_in_order(iv, col_count)) return LIBMSI_RESULT_SUCCESS; - padded = libmsi_record_create(col_count); + padded = libmsi_record_new(col_count); if (!padded) return LIBMSI_RESULT_OUTOFMEMORY; diff --git a/libmsi/libmsi-database.c b/libmsi/libmsi-database.c index 9c8bc3c..e4bafc0 100644 --- a/libmsi/libmsi-database.c +++ b/libmsi/libmsi-database.c @@ -1174,7 +1174,7 @@ static unsigned construct_record(unsigned num_columns, WCHAR **types, { unsigned i; - *rec = libmsi_record_create(num_columns); + *rec = libmsi_record_new(num_columns); if (!*rec) return LIBMSI_RESULT_OUTOFMEMORY; @@ -2540,7 +2540,7 @@ unsigned _libmsi_database_get_primary_keys( LibmsiDatabase *db, TRACE("Found %d primary keys\n", info.n ); /* allocate a record and fill in the names of the tables */ - info.rec = libmsi_record_create( info.n ); + info.rec = libmsi_record_new( info.n ); info.n = 0; r = _libmsi_query_iterate_records( query, 0, msi_primary_key_iterator, &info ); if( r == LIBMSI_RESULT_SUCCESS ) diff --git a/libmsi/libmsi-query.c b/libmsi/libmsi-query.c index d020e16..b5a48ad 100644 --- a/libmsi/libmsi-query.c +++ b/libmsi/libmsi-query.c @@ -254,7 +254,7 @@ unsigned msi_view_get_row(LibmsiDatabase *db, LibmsiView *view, unsigned row, Li if (row >= row_count) return LIBMSI_RESULT_NO_MORE_ITEMS; - *rec = libmsi_record_create(col_count); + *rec = libmsi_record_new(col_count); if (!*rec) return LIBMSI_RESULT_FUNCTION_FAILED; @@ -469,7 +469,7 @@ unsigned _libmsi_query_get_column_info( LibmsiQuery *query, LibmsiColInfo info, if( !count ) return LIBMSI_RESULT_INVALID_PARAMETER; - rec = libmsi_record_create( count ); + rec = libmsi_record_new( count ); if( !rec ) return LIBMSI_RESULT_FUNCTION_FAILED; diff --git a/libmsi/libmsi-record.c b/libmsi/libmsi-record.c index 6aefe53..225475e 100644 --- a/libmsi/libmsi-record.c +++ b/libmsi/libmsi-record.c @@ -70,7 +70,7 @@ void _libmsi_record_destroy( LibmsiObject *arg ) _libmsi_free_field( &rec->fields[i] ); } -LibmsiRecord *libmsi_record_create( unsigned cParams ) +LibmsiRecord *libmsi_record_new( unsigned cParams ) { LibmsiRecord *rec; unsigned len; @@ -657,7 +657,7 @@ LibmsiRecord *_libmsi_record_clone(LibmsiRecord *rec) unsigned r, i, count; count = libmsi_record_get_field_count(rec); - clone = libmsi_record_create(count); + clone = libmsi_record_new(count); if (!clone) return NULL; diff --git a/libmsi/msipriv.h b/libmsi/msipriv.h index 297f089..d9fb5e8 100644 --- a/libmsi/msipriv.h +++ b/libmsi/msipriv.h @@ -120,7 +120,7 @@ typedef struct _LibmsiField typedef struct _LibmsiRecord { LibmsiObject hdr; - unsigned count; /* as passed to libmsi_record_create */ + unsigned count; /* as passed to libmsi_record_new */ LibmsiField fields[1]; /* nb. array size is count+1 */ } LibmsiRecord; diff --git a/libmsi/select.c b/libmsi/select.c index 3866cae..949a70a 100644 --- a/libmsi/select.c +++ b/libmsi/select.c @@ -121,7 +121,7 @@ static unsigned select_view_set_row( LibmsiView *view, unsigned row, LibmsiRecor return r; /* expand the record to the right size for the underlying table */ - expanded = libmsi_record_create( col_count ); + expanded = libmsi_record_new( col_count ); if ( !expanded ) return LIBMSI_RESULT_FUNCTION_FAILED; @@ -158,7 +158,7 @@ static unsigned select_view_insert_row( LibmsiView *view, LibmsiRecord *record, if (r != LIBMSI_RESULT_SUCCESS) return r; - outrec = libmsi_record_create( table_cols + 1 ); + outrec = libmsi_record_new( table_cols + 1 ); for (i=0; i<sv->num_cols; i++) { diff --git a/libmsi/table.c b/libmsi/table.c index 4b8cc16..75122f6 100644 --- a/libmsi/table.c +++ b/libmsi/table.c @@ -854,7 +854,7 @@ unsigned msi_create_table( LibmsiDatabase *db, const WCHAR *name, column_info *c if( r ) goto err; - rec = libmsi_record_create( 1 ); + rec = libmsi_record_new( 1 ); if( !rec ) goto err; @@ -885,7 +885,7 @@ unsigned msi_create_table( LibmsiDatabase *db, const WCHAR *name, column_info *c if( r ) goto err; - rec = libmsi_record_create( 4 ); + rec = libmsi_record_new( 4 ); if( !rec ) goto err; @@ -1307,7 +1307,7 @@ static unsigned _libmsi_add_stream( LibmsiDatabase *db, const WCHAR *name, IStre TRACE("%p %s %p\n", db, debugstr_w(name), data); - rec = libmsi_record_create( 2 ); + rec = libmsi_record_new( 2 ); if ( !rec ) return LIBMSI_RESULT_OUTOFMEMORY; @@ -1881,7 +1881,7 @@ static unsigned table_view_remove_column(LibmsiView *view, const WCHAR *table, u LibmsiView *columns = NULL; unsigned row, r; - rec = libmsi_record_create(2); + rec = libmsi_record_new(2); if (!rec) return LIBMSI_RESULT_OUTOFMEMORY; @@ -1953,7 +1953,7 @@ static unsigned table_view_add_column(LibmsiView *view, const WCHAR *table, unsi LibmsiRecord *rec; unsigned r, i; - rec = libmsi_record_create(4); + rec = libmsi_record_new(4); if (!rec) return LIBMSI_RESULT_OUTOFMEMORY; @@ -2004,7 +2004,7 @@ static unsigned table_view_drop(LibmsiView *view) return r; } - rec = libmsi_record_create(1); + rec = libmsi_record_new(1); if (!rec) return LIBMSI_RESULT_OUTOFMEMORY; @@ -2229,7 +2229,7 @@ static LibmsiRecord *msi_get_transform_record( const LibmsiTableView *tv, const mask = rawdata[0] | (rawdata[1] << 8); rawdata += 2; - rec = libmsi_record_create( tv->num_cols ); + rec = libmsi_record_new( tv->num_cols ); if( !rec ) return rec; diff --git a/libmsi/update.c b/libmsi/update.c index a7f54e8..7a2a523 100644 --- a/libmsi/update.c +++ b/libmsi/update.c @@ -78,7 +78,7 @@ static unsigned update_view_execute( LibmsiView *view, LibmsiRecord *record ) if (where_count > 0) { - where = libmsi_record_create(where_count); + where = libmsi_record_new(where_count); if (where) for (i = 1; i <= where_count; i++) diff --git a/libmsi/where.c b/libmsi/where.c index 5491bfa..62cfe75 100644 --- a/libmsi/where.c +++ b/libmsi/where.c @@ -323,7 +323,7 @@ static unsigned where_view_set_row( LibmsiView *view, unsigned row, LibmsiRecord continue; } - reduced = libmsi_record_create(col_count); + reduced = libmsi_record_new(col_count); if (!reduced) return LIBMSI_RESULT_FUNCTION_FAILED; |
