Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/lib


Modified Files:
        etk_argument.c etk_argument.h 


Log Message:
- more Etk_Argument work
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_argument.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- etk_argument.c      15 Mar 2006 10:04:35 -0000      1.5
+++ etk_argument.c      15 Mar 2006 12:38:41 -0000      1.6
@@ -310,4 +310,20 @@
    return evas_hash_find(_etk_argument_extra, "column");
 }
 
+Etk_Bool etk_argument_is_set(Etk_Argument *args, const char *long_name, char 
short_name)
+{
+   Etk_Argument *arg;
+
+   arg = args;
+   while(arg->short_name != -1)
+   {
+      if((!strcmp(arg->long_name, long_name) || 
+        (arg->short_name == short_name && short_name != -1 && short_name != ' 
'))
+        && arg->flags & ETK_ARGUMENT_FLAG_PRIV_SET)
+       return ETK_TRUE;
+      ++arg;
+   }
+   return ETK_FALSE;
+}
+
 /** @} */
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_argument.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- etk_argument.h      15 Mar 2006 10:04:35 -0000      1.4
+++ etk_argument.h      15 Mar 2006 12:38:41 -0000      1.5
@@ -39,9 +39,10 @@
 };
 
 int etk_arguments_parse(Etk_Argument *args, int argc, char **argv);
-void etk_argument_help_show(Etk_Argument *arg);  
+void etk_argument_help_show(Etk_Argument *args);  
 Evas_List *etk_argument_extra_find(const char *key);
-  
+Etk_Bool etk_argument_is_set(Etk_Argument *args, const char *long_name, char 
short_name);
+
 /** @} */
 
 #endif




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to