added elementary layout, clock. prototyped plugin configuration
[ego.git] / src / plugin / egoplayer.h
bloba094b3b6b1bdbb79d5316a6260bc24aa37f663d1
1 #define TARGET "_blank"
2 #define MIME_TYPES_HANDLED "application/x-ego:E Goes Online"
3 #define PLUGIN_NAME "ego plugin"
4 #define PLUGIN_DESCRIPTION "This Plugin is able to preview ego files (E Goes Online)."
6 #include <stdio.h>
7 #include <string.h>
8 #include <pthread.h>
10 #include <npapi.h>
11 #include <npupp.h>
12 #include <npruntime.h>
14 #include <X11/Intrinsic.h>
15 #include <X11/Xlib.h>
17 #include <Eet.h>
18 #include <Ecore.h>
19 #include <Ecore_Config.h>
20 #include <Evas.h>
21 #include <Evas_Engine_Software_X11.h>
22 #include <Evas_Engine_GL_X11.h>
23 #include <Edje.h>
24 #include <Elementary.h>
25 #include "ego.h"
27 typedef struct _PluginInstance
29 uint16 mode;
30 Window window;
31 Display *display;
32 uint32 x, y;
33 uint32 width, height;
34 NPMIMEType type;
35 char *message;
37 NPP instance;
38 char *pluginsPageUrl;
39 char *pluginsFileUrl;
40 NPBool pluginsHidden;
41 Visual* visual;
42 Colormap colormap;
43 unsigned int depth;
45 Atom atom;
46 Evas *evas;
47 lua_State *L;
48 char *data;
49 XClientMessageEvent msg;
50 pthread_t trigger_id;
51 int done;
53 Evas_Object *ego_obj;
54 Evas_Object *theme_obj;
55 Evas_Object *config_obj;
56 int engine_toggle;
58 NPBool exists; /* Does the widget already exist? */
59 int action; /* What action should we take? (GET or REFRESH) */
61 } PluginInstance;
63 void mep_asynccall (void *userData);
64 int mep_animator (void *data);