diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-15 11:29:15 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-15 11:29:15 +0000 |
commit | 35be190a96f0063d70b7fe1ae6cb85c30ed972a3 (patch) | |
tree | 9b069178235068621e67cb6cf030c9327fb64a6c /recordmydesktop/src/parseargs.c | |
parent | 73b30883a6046a316969c13751238180933876e9 (diff) |
Makefile.am: added poll_events.c(removed poll_damage.c)
parseargs.c: added parsing for pause and stop shortcut
recordmydesktop.c : shortcuts related code changes
rmdthreads.c: added a hack to end the poll_events thread, since it
now runs regardless of whether full-shots is specified.
shortcuts.c: new method RegisterShortcuts.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@435 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/parseargs.c')
-rw-r--r-- | recordmydesktop/src/parseargs.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recordmydesktop/src/parseargs.c b/recordmydesktop/src/parseargs.c index a540610..1ed0cc1 100644 --- a/recordmydesktop/src/parseargs.c +++ b/recordmydesktop/src/parseargs.c @@ -104,6 +104,11 @@ int ParseArgs(int argc,char **argv,ProgArgs *arg_return){ "\t--no-wm-check\t\tDo not try to detect" " the window manager(and set options according to it)\n" + "\t-pause-shortcut MOD+KEY\tShortcut that will be used for (un)pausing" + "(default Control+Mod1+p).\n" + "\t-stop-shortcut MOD+KEY\tShortcut that will be used to stop the " + "recording (default Control+Mod1+s).\n" + "\t--compress-cache\tImage data are cached with light compression.\n" "\t-workdir DIR\t\tLocation where a temporary directory" " will be created to hold project files(default $HOME).\n" @@ -414,6 +419,30 @@ int ParseArgs(int argc,char **argv,ProgArgs *arg_return){ } i++; } + else if(!strcmp(argv[i],"-pause-shortcut")){ + if(i+1<argc){ + free(arg_return->pause_shortcut); + arg_return->pause_shortcut=malloc(strlen(argv[i+1])+1); + strcpy(arg_return->pause_shortcut,argv[i+1]); + } + else{ + fprintf(stderr,"Argument Usage: -pause-shortcut MOD+KEY\n"); + return 1; + } + i++; + } + else if(!strcmp(argv[i],"-stop-shortcut")){ + if(i+1<argc){ + free(arg_return->stop_shortcut); + arg_return->stop_shortcut=malloc(strlen(argv[i+1])+1); + strcpy(arg_return->stop_shortcut,argv[i+1]); + } + else{ + fprintf(stderr,"Argument Usage: -stop-shortcut MOD+KEY\n"); + return 1; + } + i++; + } else if(!strcmp(argv[i],"-buffer-size")){ if(i+1<argc){ int num=atoi(argv[i+1]); |