summaryrefslogtreecommitdiffstats
path: root/bin/tools/benchmark.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-04-01 16:23:27 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-04-01 16:23:27 +0200
commitb83e7a311580e9c0ed7bd58637b01c10d4b4f8a3 (patch)
tree03305140e9fb17885b83c25bfd91081119ece146 /bin/tools/benchmark.c
parentfa3f523af9ac95945af59bdaa729d71d79327a76 (diff)
downloadlibuca-b83e7a311580e9c0ed7bd58637b01c10d4b4f8a3.tar.gz
libuca-b83e7a311580e9c0ed7bd58637b01c10d4b4f8a3.tar.bz2
libuca-b83e7a311580e9c0ed7bd58637b01c10d4b4f8a3.tar.xz
libuca-b83e7a311580e9c0ed7bd58637b01c10d4b4f8a3.zip
cli: pass -p/--property assignment to constructor
Diffstat (limited to 'bin/tools/benchmark.c')
-rw-r--r--bin/tools/benchmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/tools/benchmark.c b/bin/tools/benchmark.c
index 01702fe..b3a873f 100644
--- a/bin/tools/benchmark.c
+++ b/bin/tools/benchmark.c
@@ -335,7 +335,7 @@ main (int argc, char *argv[])
#endif
manager = uca_plugin_manager_new ();
- context = uca_option_context_new (manager);
+ context = uca_common_context_new (manager);
g_option_context_add_main_entries (context, entries, NULL);
if (!g_option_context_parse (context, &argc, &argv, &error)) {
@@ -352,7 +352,7 @@ main (int argc, char *argv[])
g_assert_no_error (error);
g_log_set_handler (NULL, G_LOG_LEVEL_MASK, log_handler, log_channel);
- camera = uca_plugin_manager_get_camera (manager, argv[argc - 1], &error, NULL);
+ camera = uca_common_get_camera (manager, argv[argc - 1], &error);
if (camera == NULL) {
g_print ("Initialization: %s\n", error->message);