search for: g_option_arg_string

Displaying 9 results from an estimated 9 matches for "g_option_arg_string".

2009 Jul 23
1
viewer updates for fedora submission
This patchset provides updates to the viewer in preperation for its fedora submission. Included are patches cmd-line parameterizing hostname/user/pass/vm, the addition of a man page, cleanup of the project's structure, and updates to the spec.
2009 Jul 13
0
[PATCH viewer] permit hostname / username / password / vm to be passed in via the cmd line
...onst char *help_msg = "Use '" PACKAGE " --help' to see a list of available command line options"; static const GOptionEntry options[] = { - { "port", 'p', 0, G_OPTION_ARG_INT, &ovirt_server_vnc_port, + { "hostname", 'H', 0, G_OPTION_ARG_STRING, &hostname, + "hostname of the server to connect to", NULL}, + { "port", 'P', 0, G_OPTION_ARG_INT, &ovirt_server_vnc_port, "set port which to connect to server via vnc", NULL }, + { "username", 'u', 0, G_OPTION_ARG_STRING, &a...
2009 Jun 10
1
[PATCH] add cmd line option for server vnc port
...ot; --help' to see a list of available command line options"; static const GOptionEntry options[] = { + { "port", 'p', 0, G_OPTION_ARG_INT, &ovirt_server_vnc_port, + "set port which to connect to server via vnc", NULL }, { "cainfo", 0, 0, G_OPTION_ARG_STRING, &cainfo, "set the path of the CA certificate bundle", NULL }, { "check-certificate", 0, 0, G_OPTION_ARG_NONE, &check_cert, diff --git a/tunnel.c b/tunnel.c index c6d091d..17b512c 100644 --- a/tunnel.c +++ b/tunnel.c @@ -53,9 +53,6 @@ const int VM_NAME_MAX_LEN =...
2007 Feb 17
0
8 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...'i', 0, G_OPTION_ARG_NONE, &use_image, "use an intermediate image surface for drawing", NULL }, { "break", 'b', 0, G_OPTION_ARG_NONE, &do_break, "break at the beginning of every script", NULL }, + { "variables", 'v', 0, G_OPTION_ARG_STRING, &variables, "variables to pass to player", "VAR=NAME[&VAR=NAME..]" }, { NULL } }; GOptionContext *ctx; @@ -346,7 +348,7 @@ main (int argc, char *argv[]) if (do_break) g_signal_connect (player, "script-added", G_CALLBACK (do_break_cb), NULL);...
2007 Feb 14
0
7 commits - libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_list.c test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h test/swfscript.c
...free (actions); + g_free (ret); + return NULL; + } + } + g_free (actions); + return ret; +} + +int +main (int argc, char **argv) +{ + SwfeditFile *file; + GError *error = NULL; + char *add_trace_s = NULL; + GOptionEntry options[] = { + { "add-trace", 't', 0, G_OPTION_ARG_STRING, &add_trace_s, "list of actions to trace", "ACTION, ACTION" }, + { NULL } + }; + GOptionContext *ctx; + + ctx = g_option_context_new (""); + g_option_context_add_main_entries (ctx, options, "options"); + g_option_context_add_group (ctx, gtk_get_op...
2008 Jan 08
0
4 commits - configure.ac test/compiler.c test/.gitignore test/Makefile.am test/swfdec_test.c test/swfdec_test_function.c test/swfdec_test_function.h test/swfdec_test_global.c test/swfdec_test_initialize.as test/swfdec_test_initialize.h
...cript; +} + +int +main (int argc, char **argv) +{ + char *script_filename = NULL; + GError *error = NULL; + SwfdecAsContext *context; + SwfdecAsObject *array; + SwfdecScript *script; + SwfdecAsValue val; + int i, ret; + + GOptionEntry options[] = { + { "script", 's', 0, G_OPTION_ARG_STRING, &script_filename, "script to execute if not ./default.sts", "FILENAME" }, + { NULL } + }; + GOptionContext *ctx; + + ctx = g_option_context_new (""); + g_option_context_add_main_entries (ctx, options, "options"); + g_option_context_parse (ctx, &a...
2008 Jan 19
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/image test/swfdec_test.c test/swfdec_test_image.c test/trace
...main (int argc, char **argv) SwfdecScript *script; SwfdecAsValue val; int i, ret; + gboolean dump; GOptionEntry options[] = { + { "dump", 'd', 0, G_OPTION_ARG_NONE, &dump, "dump images on failure", FALSE }, { "script", 's', 0, G_OPTION_ARG_STRING, &script_filename, "script to execute if not ./default.sts", "FILENAME" }, { NULL } }; @@ -110,6 +112,11 @@ main (int argc, char **argv) context = g_object_new (SWFDEC_TYPE_AS_CONTEXT, NULL); swfdec_as_context_startup (context, SWFDEC_TEST_VERSION); + + SWFD...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...'i', 0, G_OPTION_ARG_NONE, &use_image, "use an intermediate image surface for drawing", NULL }, - { "break", 'b', 0, G_OPTION_ARG_NONE, &do_break, "break at the beginning of every script", NULL }, - { "variables", 'v', 0, G_OPTION_ARG_STRING, &variables, "variables to pass to player", "VAR=NAME[&VAR=NAME..]" }, - { NULL } - }; - GOptionContext *ctx; - - ctx = g_option_context_new (""); - g_option_context_add_main_entries (ctx, options, "options"); - g_option_context_add_group (ctx...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...free (actions); - g_free (ret); - return NULL; - } - } - g_free (actions); - return ret; -} - -int -main (int argc, char **argv) -{ - SwfeditFile *file; - GError *error = NULL; - char *add_trace_s = NULL; - GOptionEntry options[] = { - { "add-trace", 't', 0, G_OPTION_ARG_STRING, &add_trace_s, "list of actions to trace", "ACTION, ACTION" }, - { NULL } - }; - GOptionContext *ctx; - - ctx = g_option_context_new (""); - g_option_context_add_main_entries (ctx, options, "options"); - g_option_context_add_group (ctx, gtk_get_op...