forked from enlightenment/efl
eolian gen: use EWAPI for all generated variables
This commit is contained in:
parent
401ab75a4a
commit
5db3f14f85
|
@ -176,7 +176,7 @@ _var_generate(const Eolian_Variable *vr, Eina_Bool legacy)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Eina_Stringshare *ct = eolian_type_c_type_get(vt);
|
Eina_Stringshare *ct = eolian_type_c_type_get(vt);
|
||||||
eina_strbuf_append_printf(buf, "extern %s %s;", ct, fn);
|
eina_strbuf_append_printf(buf, "EWAPI extern %s %s;", ct, fn);
|
||||||
eina_stringshare_del(ct);
|
eina_stringshare_del(ct);
|
||||||
}
|
}
|
||||||
free(fn);
|
free(fn);
|
||||||
|
@ -267,7 +267,7 @@ void eo_gen_types_source_gen(const char *eof, Eina_Strbuf *buf)
|
||||||
|
|
||||||
const Eolian_Type *vt = eolian_variable_base_type_get(vr);
|
const Eolian_Type *vt = eolian_variable_base_type_get(vr);
|
||||||
Eina_Stringshare *ct = eolian_type_c_type_get(vt);
|
Eina_Stringshare *ct = eolian_type_c_type_get(vt);
|
||||||
eina_strbuf_append_printf(buf, "%s %s = ", ct, fn);
|
eina_strbuf_append_printf(buf, "EWAPI %s %s = ", ct, fn);
|
||||||
eina_stringshare_del(ct);
|
eina_stringshare_del(ct);
|
||||||
|
|
||||||
Eolian_Value val = eolian_expression_eval_type(vv, vt);
|
Eolian_Value val = eolian_expression_eval_type(vv, vt);
|
||||||
|
|
|
@ -179,10 +179,10 @@ EAPI int ECORE_CON_EVENT_CLIENT_ERROR = 0;
|
||||||
EAPI int ECORE_CON_EVENT_SERVER_ERROR = 0;
|
EAPI int ECORE_CON_EVENT_SERVER_ERROR = 0;
|
||||||
EAPI int ECORE_CON_EVENT_PROXY_BIND = 0;
|
EAPI int ECORE_CON_EVENT_PROXY_BIND = 0;
|
||||||
|
|
||||||
EAPI Eina_Error EFL_NET_DIALER_ERROR_COULDNT_CONNECT = 0;
|
EWAPI Eina_Error EFL_NET_DIALER_ERROR_COULDNT_CONNECT = 0;
|
||||||
EAPI Eina_Error EFL_NET_DIALER_ERROR_COULDNT_RESOLVE_PROXY = 0;
|
EWAPI Eina_Error EFL_NET_DIALER_ERROR_COULDNT_RESOLVE_PROXY = 0;
|
||||||
EAPI Eina_Error EFL_NET_DIALER_ERROR_COULDNT_RESOLVE_HOST = 0;
|
EWAPI Eina_Error EFL_NET_DIALER_ERROR_COULDNT_RESOLVE_HOST = 0;
|
||||||
EAPI Eina_Error EFL_NET_DIALER_ERROR_PROXY_AUTHENTICATION_FAILED = 0;
|
EWAPI Eina_Error EFL_NET_DIALER_ERROR_PROXY_AUTHENTICATION_FAILED = 0;
|
||||||
|
|
||||||
static Eina_List *servers = NULL;
|
static Eina_List *servers = NULL;
|
||||||
static int _ecore_con_init_count = 0;
|
static int _ecore_con_init_count = 0;
|
||||||
|
|
|
@ -26,57 +26,57 @@ Ecore_Con_Curl *_c = NULL;
|
||||||
Eina_Bool _c_fail = EINA_FALSE;
|
Eina_Bool _c_fail = EINA_FALSE;
|
||||||
double _c_timeout = 0.0;
|
double _c_timeout = 0.0;
|
||||||
|
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_CONTENT_ENCODING = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_CONTENT_ENCODING = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_DOWNLOAD_RESUME = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_DOWNLOAD_RESUME = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_FUNCTION_ARGUMENT = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_FUNCTION_ARGUMENT = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_CHUNK_FAILED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_CHUNK_FAILED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_FAILED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_FAILED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_REQD = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_REQD = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_FAILED_INIT = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_FAILED_INIT = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_FILE_COULDNT_READ_FILE = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_FILE_COULDNT_READ_FILE = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_FILESIZE_EXCEEDED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_FILESIZE_EXCEEDED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_FUNCTION_NOT_FOUND = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_FUNCTION_NOT_FOUND = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_GOT_NOTHING = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_GOT_NOTHING = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2 = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2 = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2_STREAM = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2_STREAM = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_POST_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_POST_ERROR = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_RETURNED_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_RETURNED_ERROR = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_INTERFACE_FAILED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_INTERFACE_FAILED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_LOGIN_DENIED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_LOGIN_DENIED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_NO_CONNECTION_AVAILABLE = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_NO_CONNECTION_AVAILABLE = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_NOT_BUILT_IN = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_NOT_BUILT_IN = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_OPERATION_TIMEDOUT = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_OPERATION_TIMEDOUT = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_PARTIAL_FILE = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_PARTIAL_FILE = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_PEER_FAILED_VERIFICATION = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_PEER_FAILED_VERIFICATION = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_RANGE_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_RANGE_ERROR = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_READ_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_READ_ERROR = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_RECV_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_RECV_ERROR = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_ACCESS_DENIED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_ACCESS_DENIED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_DISK_FULL = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_DISK_FULL = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_EXISTS = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_EXISTS = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_NOT_FOUND = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_NOT_FOUND = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_ERROR = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_FAIL_REWIND = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_FAIL_REWIND = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT_BADFILE = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT_BADFILE = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CERTPROBLEM = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CERTPROBLEM = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CIPHER = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CIPHER = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CONNECT_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CONNECT_ERROR = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CRL_BADFILE = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CRL_BADFILE = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_INITFAILED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_INITFAILED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_NOTFOUND = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_NOTFOUND = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_SETFAILED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_SETFAILED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_INVALIDCERTSTATUS = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_INVALIDCERTSTATUS = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ISSUER_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ISSUER_ERROR = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_PINNEDPUBKEYNOTMATCH = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_PINNEDPUBKEYNOTMATCH = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_SHUTDOWN_FAILED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_SHUTDOWN_FAILED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_TOO_MANY_REDIRECTS = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_TOO_MANY_REDIRECTS = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_UNKNOWN_OPTION = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_UNKNOWN_OPTION = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_UNSUPPORTED_PROTOCOL = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_UNSUPPORTED_PROTOCOL = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_UPLOAD_FAILED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_UPLOAD_FAILED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_URL_MALFORMAT = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_URL_MALFORMAT = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_USE_SSL_FAILED = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_USE_SSL_FAILED = 0;
|
||||||
EAPI Eina_Error EFL_NET_HTTP_ERROR_WRITE_ERROR = 0;
|
EWAPI Eina_Error EFL_NET_HTTP_ERROR_WRITE_ERROR = 0;
|
||||||
|
|
||||||
Eina_Error
|
Eina_Error
|
||||||
_curlcode_to_eina_error(const CURLcode code)
|
_curlcode_to_eina_error(const CURLcode code)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
float BAR = 10.300000f;
|
EWAPI float BAR = 10.300000f;
|
||||||
|
|
||||||
Eina_Bool _class_simple_a_set(Eo *obj, Evas_Simple_Data *pd, int value);
|
Eina_Bool _class_simple_a_set(Eo *obj, Evas_Simple_Data *pd, int value);
|
||||||
|
|
||||||
|
|
|
@ -23,13 +23,13 @@ typedef Eo Class_Simple;
|
||||||
*
|
*
|
||||||
* @ingroup Bar
|
* @ingroup Bar
|
||||||
*/
|
*/
|
||||||
extern float BAR;
|
EWAPI extern float BAR;
|
||||||
|
|
||||||
/** in header but not in source
|
/** in header but not in source
|
||||||
*
|
*
|
||||||
* @ingroup Baz
|
* @ingroup Baz
|
||||||
*/
|
*/
|
||||||
extern long BAZ;
|
EWAPI extern long BAZ;
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,13 +23,13 @@ typedef Eo Class_Simple;
|
||||||
*
|
*
|
||||||
* @ingroup Bar
|
* @ingroup Bar
|
||||||
*/
|
*/
|
||||||
extern float BAR;
|
EWAPI extern float BAR;
|
||||||
|
|
||||||
/** in header but not in source
|
/** in header but not in source
|
||||||
*
|
*
|
||||||
* @ingroup Baz
|
* @ingroup Baz
|
||||||
*/
|
*/
|
||||||
extern long BAZ;
|
EWAPI extern long BAZ;
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -60,7 +60,7 @@ typedef Bar Alias;
|
||||||
*
|
*
|
||||||
* @ingroup pants
|
* @ingroup pants
|
||||||
*/
|
*/
|
||||||
extern int PANTS;
|
EWAPI extern int PANTS;
|
||||||
|
|
||||||
/** Opaque struct docs. See @ref Foo for another struct.
|
/** Opaque struct docs. See @ref Foo for another struct.
|
||||||
*
|
*
|
||||||
|
|
|
@ -60,7 +60,7 @@ typedef Bar Alias;
|
||||||
*
|
*
|
||||||
* @ingroup pants
|
* @ingroup pants
|
||||||
*/
|
*/
|
||||||
extern int PANTS;
|
EWAPI extern int PANTS;
|
||||||
|
|
||||||
/** Opaque struct docs. See @ref Foo for another struct.
|
/** Opaque struct docs. See @ref Foo for another struct.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue