diff options
author | Olliver Schinagl <oliver@schinagl.nl> | 2015-01-24 16:33:38 (GMT) |
---|---|---|
committer | Olliver Schinagl <oliver@schinagl.nl> | 2015-01-24 16:33:38 (GMT) |
commit | a6f59e16946ddd2f7d896f8cdbfb891aaedb73ef (patch) | |
tree | 12554fb464cb428eea1c70309d474bdae7d5ec17 /src/eulogium.c | |
parent | 08cfb908c22c0c7b5aeb788569950718939b7465 (diff) | |
download | eulogium-a6f59e16946ddd2f7d896f8cdbfb891aaedb73ef.zip eulogium-a6f59e16946ddd2f7d896f8cdbfb891aaedb73ef.tar.gz eulogium-a6f59e16946ddd2f7d896f8cdbfb891aaedb73ef.tar.bz2 |
wip commit
Diffstat (limited to 'src/eulogium.c')
-rw-r--r-- | src/eulogium.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/eulogium.c b/src/eulogium.c new file mode 100644 index 0000000..bbe259c --- /dev/null +++ b/src/eulogium.c @@ -0,0 +1,61 @@ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include <Eina.h> +#include <Ecore.h> +#include <Ecore_Evas.h> +#include <Edje.h> + +#include "gettext.h" + +#define COPYRIGHT "Copyright © 2015 oliver <o.schinagl@ultimaker.com> and various contributors (see AUTHORS)." + +int main(int argc EINA_UNUSED, char **argv EINA_UNUSED) +{ +#if 0 + Eina_Bool quit_option = EINA_FALSE; + int args; + static const Ecore_Getopt optdesc = { + "eulogium", + "%prog [options]", + PACKAGE_VERSION, + COPYRIGHT, + "Affero GPLv3", + "eulogium program", + 0, + { + ECORE_GETOPT_LICENSE('L', "license"), + ECORE_GETOPT_COPYRIGHT('C', "copyright"), + ECORE_GETOPT_VERSION('V', "version"), + ECORE_GETOPT_HELP('h', "help"), + ECORE_GETOPT_SENTINEL + } + }; + + + Ecore_Getopt_Value values[] = { + ECORE_GETOPT_VALUE_BOOL(quit_option), + ECORE_GETOPT_VALUE_BOOL(quit_option), + ECORE_GETOPT_VALUE_BOOL(quit_option), + ECORE_GETOPT_VALUE_BOOL(quit_option), + ECORE_GETOPT_VALUE_NONE + }; + args = ecore_getopt_parse(&optdesc, values, argc, argv); +#endif + +#if ENABLE_NLS + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + bind_textdomain_codeset(PACKAGE, "UTF-8"); + textdomain(PACKAGE); +#endif + + eina_init(); + + EINA_LOG_CRIT("Could not parse arguments."); + + eina_shutdown(); + + return 0; +} |