1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <glib-object.h> #include "uca-camera.h" #include "uca-mock-camera.h" int main(int argc, char **argv) { g_type_init(); gchar **types = uca_camera_get_types(); for (guint i = 0; i < g_strv_length(types); i++) { g_print("Camera: %s\n", types[i]); } g_strfreev(types); }