summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/parseargs.c
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-11-15 11:29:15 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-11-15 11:29:15 +0000
commit35be190a96f0063d70b7fe1ae6cb85c30ed972a3 (patch)
tree9b069178235068621e67cb6cf030c9327fb64a6c /recordmydesktop/src/parseargs.c
parent73b30883a6046a316969c13751238180933876e9 (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.c29
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]);
© All Rights Reserved