diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2010-08-13 00:11:29 -0400 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2010-08-25 13:47:21 +0100 |
commit | 73181f3509c2de0decec998abd9b28b660407a39 (patch) | |
tree | 6a58b88aa601b469e0724a52b2a34634eed9fb0a /test | |
parent | 6253020317d3b77b40ecf1ef609c5100ecdfe940 (diff) |
Sanitize API naming for OsinfoDb class
The GObject naming conversion is lowercase, separated
by underscores. This needs to be followed to allow
gobject introspection to be auto-generated easily.
* osinfo/Makefile.am: Add -Wl,-no-undefined to ensure
any undefined symbols are caught
* osinfo/osinfo_common.h: Remove declaration of
methods that belong in osinfo_db.h
* osinfo/osinfo_db.c, osinfo/osinfo_db.h: Convert
API naming to use lowercase + underscores. Add an
explicit constructor.
* test/test-skeleton.c: Fix for changed API naming
and use OsinfoDb constructor
Diffstat (limited to 'test')
-rw-r--r-- | test/test-skeleton.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-skeleton.c b/test/test-skeleton.c index 2b819e8..016fa20 100644 --- a/test/test-skeleton.c +++ b/test/test-skeleton.c @@ -13,11 +13,10 @@ main (int argc, char *argv[]) g_type_init(); /* Create our object */ - OsinfoDb *db = g_object_new (OSINFO_TYPE_DB, "backing-dir", - "../data", NULL); + OsinfoDb *db = osinfo_db_new("../data"); // Read in data - ret = osinfoInitializeDb(db, NULL); + ret = osinfo_db_initialize(db, NULL); if (ret != 0) { printf("Error initializing db! %d\n", ret); exit(1); |