Enlightenment CVS committal
Author : sebastid
Project : e17
Module : libs/esmart
Dir : e17/libs/esmart/src/lib/esmart_text_entry
Modified Files:
Esmart_Text_Entry.h esmart_text_entry.c
Log Message:
EAPI
===================================================================
RCS file: /cvs/e/e17/libs/esmart/src/lib/esmart_text_entry/Esmart_Text_Entry.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- Esmart_Text_Entry.h 5 Sep 2005 09:55:14 -0000 1.5
+++ Esmart_Text_Entry.h 6 Sep 2006 07:17:48 -0000 1.6
@@ -1,6 +1,27 @@
#ifndef _ESMART_TEXT_ENTRY_H
#define _ESMART_TEXT_ENTRY_H
+#ifdef EAPI
+#undef EAPI
+#endif
+#ifdef WIN32
+# ifdef BUILDING_DLL
+# define EAPI __declspec(dllexport)
+# else
+# define EAPI __declspec(dllimport)
+# endif
+#else
+# ifdef __GNUC__
+# if __GNUC__ >= 4
+# define EAPI __attribute__ ((visibility("default")))
+# else
+# define EAPI
+# endif
+# else
+# define EAPI
+# endif
+#endif
+
#include <Evas.h>
#ifdef __cplusplus
@@ -8,24 +29,23 @@
#endif
/* create a new text entry */
-Evas_Object *esmart_text_entry_new (Evas * e);
+EAPI Evas_Object *esmart_text_entry_new (Evas * e);
-void esmart_text_entry_text_set (Evas_Object * o, const char *str);
-void esmart_text_entry_is_password_set (Evas_Object * o, int val);
-void esmart_text_entry_max_chars_set (Evas_Object * o, int max);
-void esmart_text_entry_edje_part_set (Evas_Object * o, Evas_Object * edje,
- const char *part);
-Evas_Object *esmart_text_entry_edje_object_get(Evas_Object * o);
-const char *esmart_text_entry_edje_part_get(Evas_Object * o);
+EAPI void esmart_text_entry_text_set (Evas_Object * o, const char *str);
+EAPI void esmart_text_entry_is_password_set (Evas_Object * o, int val);
+EAPI void esmart_text_entry_max_chars_set (Evas_Object * o, int max);
+EAPI void esmart_text_entry_edje_part_set (Evas_Object * o, Evas_Object * edje,
+ const char *part);
+EAPI Evas_Object *esmart_text_entry_edje_object_get(Evas_Object * o);
+EAPI const char *esmart_text_entry_edje_part_get(Evas_Object * o);
/* you've gotta free this resut */
-const char *esmart_text_entry_text_get(Evas_Object *o);
+EAPI const char *esmart_text_entry_text_get(Evas_Object *o);
-void esmart_text_entry_return_key_callback_set (Evas_Object * o,
- void (*func) (void *data,
- const char
- *str),
- void *data);
+EAPI void esmart_text_entry_return_key_callback_set (Evas_Object * o,
+ void (*func) (void *data,
+ const char
*str),
+ void *data);
#ifdef __cplusplus
}
===================================================================
RCS file: /cvs/e/e17/libs/esmart/src/lib/esmart_text_entry/esmart_text_entry.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- esmart_text_entry.c 14 Dec 2005 14:23:53 -0000 1.12
+++ esmart_text_entry.c 6 Sep 2006 07:17:48 -0000 1.13
@@ -38,7 +38,7 @@
static Evas_Smart *esmart_text_entry_smart_get (void);
static void esmart_text_entry_text_fix (Evas_Object * o);
-Evas_Object *
+EAPI Evas_Object *
esmart_text_entry_new (Evas * e)
{
Evas_Object *o = NULL;
@@ -47,7 +47,7 @@
return (o);
}
-const char *
+EAPI const char *
esmart_text_entry_text_get (Evas_Object * o)
{
Esmart_Text_Entry *e = NULL;
@@ -59,7 +59,7 @@
return (NULL);
}
-void
+EAPI void
esmart_text_entry_is_password_set (Evas_Object * o, int val)
{
Esmart_Text_Entry *e = NULL;
@@ -71,7 +71,7 @@
}
-void
+EAPI void
esmart_text_entry_edje_part_set (Evas_Object * o, Evas_Object * edje,
const char *part)
{
@@ -86,7 +86,7 @@
}
}
-Evas_Object *
+EAPI Evas_Object *
esmart_text_entry_edje_object_get(Evas_Object * o)
{
Esmart_Text_Entry *e = NULL;
@@ -98,7 +98,7 @@
return NULL;
}
-const char *
+EAPI const char *
esmart_text_entry_edje_part_get(Evas_Object * o)
{
Esmart_Text_Entry *e = NULL;
@@ -110,7 +110,7 @@
return NULL;
}
-void
+EAPI void
esmart_text_entry_return_key_callback_set (Evas_Object * o,
void (*func) (void *data,
const char *str),
@@ -123,7 +123,7 @@
e->return_key.arg = data;
}
-void
+EAPI void
esmart_text_entry_max_chars_set (Evas_Object * o, int max)
{
Esmart_Text_Entry *e = NULL;
@@ -141,7 +141,7 @@
snprintf (e->buf.text, strlen (buf), "%s", buf);
}
}
-void
+EAPI void
esmart_text_entry_text_set (Evas_Object * o, const char *str)
{
Esmart_Text_Entry *e = NULL;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs