Example #1
0
const Ecore_Getopt optdesc = {
  "edje_inspector",
  "%prog [options] <file.edj>",
  PACKAGE_VERSION,
  "(C) 2010 - The Enlightenment Project",
  "BSD",
  "Edje file inspector, let one see groups, parts, programs and other details "
  "of a compiled (binary) edje file.\n",
  0,
  {
    ECORE_GETOPT_CHOICE('m', "mode", "Choose which mode to operate on file.",
                        mode_choices),
    ECORE_GETOPT_CHOICE('d', "detail", "Choose detail level (default=terse)",
                        detail_choices),
    ECORE_GETOPT_STORE_STR('g', "group", "Limit output to group (or glob)."),
    ECORE_GETOPT_STORE_STR('p', "part", "Limit output to part (or glob)."),
    ECORE_GETOPT_STORE_STR('r', "program",
                           "Limit output to program (or glob)."),
    ECORE_GETOPT_STORE_TRUE('a', "api-only", "Limit to just api parts or "
                            "programs."),
    ECORE_GETOPT_STORE_TRUE('A', "api-fix", "Fix API names to be C compliant."),
    ECORE_GETOPT_STORE_TRUE('M', "machine", "Produce machine readable output."),
    ECORE_GETOPT_LICENSE('L', "license"),
    ECORE_GETOPT_COPYRIGHT('C', "copyright"),
    ECORE_GETOPT_VERSION('V', "version"),
    ECORE_GETOPT_HELP('h', "help"),
    ECORE_GETOPT_SENTINEL
  }
};
Example #2
0
typedef struct _MiniBrowser {
    Ecore_Evas *ee;
    Evas *evas;
    Evas_Object *bg;
    Evas_Object *browser;
} MiniBrowser;

static const Ecore_Getopt options = {
    "MiniBrowser",
    "%prog [options] [url]",
    "0.0.1",
    "(C)2012 Samsung Electronics\n",
    "",
    "Test Web Browser using the Enlightenment Foundation Libraries of WebKit2",
    EINA_TRUE, {
        ECORE_GETOPT_STORE_STR
            ('e', "engine", "ecore-evas engine to use."),
        ECORE_GETOPT_CALLBACK_NOARGS
            ('E', "list-engines", "list ecore-evas engines.",
             ecore_getopt_callback_ecore_evas_list_engines, NULL),
        ECORE_GETOPT_VERSION
            ('V', "version"),
        ECORE_GETOPT_COPYRIGHT
            ('R', "copyright"),
        ECORE_GETOPT_HELP
            ('h', "help"),
        ECORE_GETOPT_SENTINEL
    }
};

static Eina_Bool main_signal_exit(void *data, int ev_type, void *ev)
{
Example #3
0
File: enna.c Project: gzorin/e17
#include "udisks.h"
#include "exec.h"

#define EDJE_GROUP_MAIN_LAYOUT "enna/main/layout"
#define EDJE_PART_MAINMENU_SWALLOW "enna.mainmenu.swallow"

static const Ecore_Getopt options = {
  PACKAGE_NAME,
  "%prog [options] [directory]",
  PACKAGE_VERSION "Revision:" ENNA_STRINGIFY(VREV),
  "(C) 2011 [email protected]",
  "GPLv2",
  "Enna Explorer",
  EINA_TRUE,
  {
    ECORE_GETOPT_STORE_STR('t', "theme", "Specify the theme to be used"),
    ECORE_GETOPT_STORE_STR('g', "geometry", "Specify window geometry (--geometry 1280x720)"),
    ECORE_GETOPT_HELP('h', "help"),
    ECORE_GETOPT_SENTINEL
  }
};

/* Global Variable Enna *enna*/
Enna *enna;

static char *app_theme = "tablet";
static char *app_geometry = NULL;
static Eina_Bool app_exit = EINA_FALSE;
static unsigned int app_w = 1024;
static unsigned int app_h = 600;
static unsigned int app_x_off = 0;
Example #4
0
#include <Ecore_Getopt.h>
#include <Ecore_Evas.h>
#include <Edje.h>

#include "Emotion.h"

static const Ecore_Getopt options = {
   "emotion_test",
   "%prog [options] <filename>",
   "1.0.0",
   "(C) 2011-2014 Enlightenment",
   "BSD\nThis is a 3 clause bsd bla bla",
   "a simple test program for emotion.",
   1,
   {
      ECORE_GETOPT_STORE_STR('e', "engine", "ecore-evas engine to use"),
      ECORE_GETOPT_CALLBACK_NOARGS('E', "list-engines", "list ecore-evas engines",
                                   ecore_getopt_callback_ecore_evas_list_engines, NULL),
      ECORE_GETOPT_CALLBACK_ARGS('g', "geometry", "geometry to use in x:y:w:h form.", "X:Y:W:H",
                                 ecore_getopt_callback_geometry_parse, NULL),
      ECORE_GETOPT_STORE_STR('b', "backend", "backend to use"),
      ECORE_GETOPT_STORE_INT('v', "vis", "visualization type"),
      ECORE_GETOPT_STORE_TRUE('w', "webcams", "show all the available v4l streams"),
      ECORE_GETOPT_STORE_TRUE('r', "reflex", "show video reflex effect"),
      ECORE_GETOPT_STORE_TRUE('l', "loop", "restart the video when end reached"),
      ECORE_GETOPT_STORE_TRUE('p', "position", "start the video from last know position"),
      ECORE_GETOPT_VERSION('V', "version"),
      ECORE_GETOPT_COPYRIGHT('R', "copyright"),
      ECORE_GETOPT_LICENSE('L', "license"),
      ECORE_GETOPT_HELP('h', "help"),
      ECORE_GETOPT_SENTINEL
Example #5
0
File: main.c Project: dzhshf/WebKit
    EINA_TRUE,
    EINA_TRUE
};

static const Ecore_Getopt options = {
    "EWebLauncher",
    "%prog [options] [url]",
    "0.0.1",
    "(C)2008 INdT (The Nokia Technology Institute)\n"
    "(C)2009, 2010 ProFUSION embedded systems\n"
    "(C)2009, 2010, 2011 Samsung Electronics\n"
    "(C)2012 Intel Corporation\n",
    "GPL",
    "Test Web Browser using the Enlightenment Foundation Libraries of WebKit",
    EINA_TRUE, {
        ECORE_GETOPT_STORE_STR
            ('e', "engine", "ecore-evas engine to use."),
        ECORE_GETOPT_CALLBACK_NOARGS
            ('E', "list-engines", "list ecore-evas engines.",
             ecore_getopt_callback_ecore_evas_list_engines, NULL),
        ECORE_GETOPT_CHOICE
            ('b', "backing-store", "choose backing store to use.", backingStores),
        ECORE_GETOPT_STORE_DEF_BOOL
            ('f', "flattening", "frame flattening.", 0),
        ECORE_GETOPT_STORE_DEF_BOOL
            ('F', "fullscreen", "fullscreen mode.", 0),
        ECORE_GETOPT_CALLBACK_ARGS
            ('g', "geometry", "geometry to use in x:y:w:h form.", "X:Y:W:H",
             ecore_getopt_callback_geometry_parse, NULL),
        ECORE_GETOPT_STORE_STR
            ('t', "theme", "path to read the theme file from."),
        ECORE_GETOPT_STORE_STR
Example #6
0
                                     Enlil_Album   *album,
                                     const char    *path);

static const Ecore_Getopt options = {
   "Test Enlil_Photo manager",
   NULL,
   VERSION,
   "(C) 2009 Test Enlil_Photo manager, see AUTHORS.",
   "LGPL with advertisement, see COPYING",
   "\n\n",
   1,
   {
      ECORE_GETOPT_VERSION('V', "version"),
      ECORE_GETOPT_COPYRIGHT('R', "copyright"),
      ECORE_GETOPT_LICENSE('L', "license"),
      ECORE_GETOPT_STORE_STR('l', "library", "Specify the location of a library"),
      ECORE_GETOPT_HELP('h', "help"),
      ECORE_GETOPT_SENTINEL
   }
};

double t0;
double t0_sync;
double t;

int APP_LOG_DOMAIN;
#define LOG_DOMAIN APP_LOG_DOMAIN

int
main(int    argc,
     char **argv)
Example #7
0
}

const Ecore_Getopt general_opts = 
{
	"ewallset",
	NULL,
	"0.5",
	"(C) 2009 - 2011 - PrinceAMD <*****@*****.**>",
	"GPL v3 - GNU General Public License",
	"Thunar wallpaper setting program written in Elementary.\n"
	"\n"
	"These are options which you can use \n "
	"Ewallset Version 0.5",
	0,
	{
		ECORE_GETOPT_STORE_STR
		('i', "image", "Image file absolute or relative path"),
		ECORE_GETOPT_LICENSE('L', "license"),
		ECORE_GETOPT_COPYRIGHT('C', "copyright"),
		ECORE_GETOPT_VERSION('V', "version"),
		ECORE_GETOPT_HELP('h', "help"),
		ECORE_GETOPT_SENTINEL
	}
};


static Eina_Bool
_args_init(int argc, char **argv)
{
	e = calloc(1, sizeof(Ewallset));
	int arg_index;
	char *image_file;
Example #8
0
#undef EINA_LOG_DOMAIN_DEFAULT
#define EINA_LOG_DOMAIN_DEFAULT _log_dom
static int _log_dom = -1;

const Ecore_Getopt optdesc = {
  "ecore_evas_convert",
  "%prog [options] <filename-source> <filename-destination>",
  PACKAGE_VERSION,
  "(C) 2014 Enlightenment",
  "BSD with advertisement clause",
  "Simple application to convert image.",
  0,
  {
    ECORE_GETOPT_STORE_INT('q', "quality", "define encoding quality in percent."),
    ECORE_GETOPT_STORE_TRUE('c', "compress", "define if data should be compressed."),
    ECORE_GETOPT_STORE_STR('e', "encoding", "define the codec (for TGV files: 'etc1', 'etc2', 'etc1+alpha')"),
    ECORE_GETOPT_LICENSE('L', "license"),
    ECORE_GETOPT_COPYRIGHT('C', "copyright"),
    ECORE_GETOPT_VERSION('V', "version"),
    ECORE_GETOPT_HELP('h', "help"),
    ECORE_GETOPT_SENTINEL
  }
};

typedef struct _Save_Job {
   const char *output;
   const char *flags;
   Evas_Object *im;
   int ret;
} Save_Job;
Example #9
0
#include <Elementary.h>

#include "wall-e.h"
#include "wall.h"

static const Ecore_Getopt options = {
    "wall-e",
    "%prog [options]",
    "0.1.0",
    "(C) 2008 Enlightenment",
    "BSD\nThis is a 3 clause bsd bla bla",
    "a simple image viewer using enlightenment foundation libraries.\n"
    "Here is the text of the licence",
    1,
    {
        ECORE_GETOPT_STORE_STR('e', "engine", "ecore-evas engine to use"),
        ECORE_GETOPT_CALLBACK_NOARGS('E', "list-engines", "list ecore-evas engines",
                                     ecore_getopt_callback_ecore_evas_list_engines, NULL),
        ECORE_GETOPT_STORE_DEF_BOOL('F', "fullscreen", "fullscreen mode", 0),
        ECORE_GETOPT_CALLBACK_ARGS('g', "geometry", "geometry to use in x:y:w:h form.", "X:Y:W:H",
                                   ecore_getopt_callback_geometry_parse, NULL),
        ECORE_GETOPT_STORE_STR('p', "path", "path to read the image files from"),
        ECORE_GETOPT_STORE_STR('t', "theme", "path to read the theme file from"),
        ECORE_GETOPT_STORE_INT('f', "fps", "frame per second"),
        ECORE_GETOPT_STORE_INT('l', "lines", "Number of lines to display"),
        ECORE_GETOPT_COUNT('v', "verbose", "be more verbose"),
        ECORE_GETOPT_VERSION('V', "version"),
        ECORE_GETOPT_COPYRIGHT('R', "copyright"),
        ECORE_GETOPT_LICENSE('L', "license"),
        ECORE_GETOPT_HELP('h', "help"),
        ECORE_GETOPT_SENTINEL
Example #10
0
edi_test_basic(TCase *tc)
{
   tcase_add_test(tc, edi_initialization);
}

static const Ecore_Getopt optdesc = {
  "edi",
  "%prog [options]",
  PACKAGE_VERSION,
  COPYRIGHT,
  "BSD with advertisement clause",
  "The EFL IDE",
  0,
  {
    ECORE_GETOPT_STORE_TRUE('l', "list", "list available tests"),
    ECORE_GETOPT_STORE_STR('t', "test", "test to run"),
    ECORE_GETOPT_LICENSE('L', "license"),
    ECORE_GETOPT_COPYRIGHT('C', "copyright"),
    ECORE_GETOPT_VERSION('V', "version"),
    ECORE_GETOPT_HELP('h', "help"),
    ECORE_GETOPT_SENTINEL
  }
};

int
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
{
   Suite *s;
   SRunner *sr;
   TCase *tc = NULL;
   char *test = NULL;
#define H_CODEGEN_PROGRAM_CALLBACK_DEL                              \
  "void %s_%s_callback_del(Evas_Object *o, Edje_Signal_Cb func);\n"


const Ecore_Getopt optdesc = {
  "elm_codegen",
  "%prog [options] <file.edj> <group> <source_file_name> <header_file_name>",
  PACKAGE_VERSION,
  "(C) 2012 - The Enlightenment Project",
  "BSD",
  "elm_codegen generates the boilerplate code to get and set the "
  "parts of a group from a compiled (binary) edje "
  "file avoiding common errors with typos.\n",
  0,
  {
    ECORE_GETOPT_STORE_STR('p', "prefix", "The prefix for the " \
			   "generataed code."),
    ECORE_GETOPT_LICENSE('L', "license"),
    ECORE_GETOPT_COPYRIGHT('C', "copyright"),
    ECORE_GETOPT_VERSION('V', "version"),
    ECORE_GETOPT_HELP('h', "help"),
    ECORE_GETOPT_SENTINEL
  }
};

static char *
_header_standardize(const char *filename)
{
   char *str, *itr, *aux;

   aux = strrchr(filename, '/');
   str = itr = strdup(aux ? aux + 1 : filename);
Example #12
0
File: daemon.c Project: Limsik/e17

static const Ecore_Getopt options = {
    "exalt",
    NULL,
    VERSION,
    "(C) 2009 Exalt, see AUTHORS.",
    "LGPL with advertisement, see COPYING",
    "Launch exalt, a network manager daemon\n\n",
        1,
        {
            ECORE_GETOPT_VERSION('V', "version"),
            ECORE_GETOPT_COPYRIGHT('R', "copyright"),
            ECORE_GETOPT_LICENSE('L', "license"),
            ECORE_GETOPT_STORE_BOOL('d', "nodaemon", "Do not run the daemon in the background"),
            ECORE_GETOPT_STORE_STR('l', "logfile", "Specify the log file. Default : "EXALTD_LOGFILE),
            ECORE_GETOPT_STORE_STR('p', "pidfile", "Specify the pid file. Default : "EXALTD_PIDFILE),
            ECORE_GETOPT_HELP('h', "help"),
            ECORE_GETOPT_SENTINEL
        }
};

void setup_del_iface(E_DBus_Connection *conn __UNUSED__,Exalt_Ethernet* eth)
{
    Eina_List *l;
    DBus_Object_Item *dbus_item;

    EINA_LIST_FOREACH(dbus_object_list,l,dbus_item)
        if(strcmp(exalt_eth_name_get(eth),dbus_item->iface)==0)
            break;
    e_dbus_object_free(dbus_item->o);
Example #13
0
Evas_Object *image = NULL, *bg = NULL;

static const
Ecore_Getopt optdesc = {
   "",
   NULL,
   "0.0",
   "",
   "",
   "Example mesh color pick mechanism",
   0,
   {
      ECORE_GETOPT_STORE_INT('r', "row", "Rows of spheres"),
      ECORE_GETOPT_STORE_INT('c', "column", "Columns of spheres"),
      ECORE_GETOPT_STORE_INT('p', "precision", "Precision of spheres"),
      ECORE_GETOPT_STORE_STR('t', "texture", "Name of texture"),
      ECORE_GETOPT_HELP('h', "help"),
      ECORE_GETOPT_SENTINEL
    }
};

 typedef struct _Object
 {
   Eo *primitive;
   Eo *node;
   Eo *mesh;
   Eo *material;
   Eo *texture;

   Evas_Real speed;
   Ecore_Timer *animate;
Example #14
0
   "Enna - a powerfull mediacenter based on EFL and Enna Media Server",
   EINA_TRUE,
   {
      ECORE_GETOPT_STORE_DEF_BOOL
      ('f', "fullscreen", "Force fullscreen mode.", EINA_FALSE),
      ECORE_GETOPT_CALLBACK_ARGS
      ('g', "geometry", "geometry to use in x:y:w:h form.", "X:Y:W:H", ecore_getopt_callback_geometry_parse, NULL),
      ECORE_GETOPT_VERSION
      ('V', "version"),
      ECORE_GETOPT_COPYRIGHT
      ('R', "copyright"),
      ECORE_GETOPT_LICENSE
      ('L', "license"),
      ECORE_GETOPT_HELP
      ('h', "help"),
      ECORE_GETOPT_STORE_STR
      ('t', "theme", "Specify theme file to be used."),
      ECORE_GETOPT_SENTINEL
   }
};

/*============================================================================*
 *                                 Global                                     *
 *============================================================================*/

/*============================================================================*
 *                                   API                                      *
 *============================================================================*/

EAPI_MAIN int
elm_main(int argc, char **argv)
{
Example #15
0
#include "codegen.h"

static const Ecore_Getopt optdesc = {
  "edbus_codegen",
  "%prog [options] <file.xml>",
  "1.0",
  "(C) 2012 - The Enlightenment Project",
  "BSD",
  "Generate DBUS code, making write DBus client applications easy\n",
  0,
  {
    ECORE_GETOPT_STORE_STR('p', "prefix", "The prefix for the generated code."),
    ECORE_GETOPT_STORE_STR('i', "interface", "To generate code of only one interface of xml."),
    ECORE_GETOPT_STORE_STR('o', "output file name", "The name of output files, only used if a interface is selected."),
    ECORE_GETOPT_LICENSE('L', "license"),
    ECORE_GETOPT_COPYRIGHT('C', "copyright"),
    ECORE_GETOPT_VERSION('V', "version"),
    ECORE_GETOPT_HELP('h', "help"),
    ECORE_GETOPT_SENTINEL
  }
};

int
main(int argc, char **argv)
{
   char *xml_buf = NULL;
   DBus_Object *obj = NULL;
   char *prefix = NULL, *interface = NULL, *output = NULL;
   Eina_Bool quit_option = EINA_FALSE;
   int arg_index;
   Ecore_Getopt_Value values[] = {