evas-file: Remove cserve2 support

Summary:
ref T7226
Depends on D6935

Reviewers: raster, cedric, zmike, Hermet

Reviewed By: Hermet

Subscribers: #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7226

Differential Revision: https://phab.enlightenment.org/D6937
This commit is contained in:
Chris Michael 2018-08-30 13:49:04 +09:00 committed by Hermet Park
parent 5b36506a68
commit 78d5c4bdae
2 changed files with 5 additions and 38 deletions

View File

@ -424,6 +424,8 @@ typedef void (*Evas_Async_Events_Put_Cb)(void *target, Evas_Callback_Type t
*/
/**
* @deprecated This function now returns NULL as cserve2 support has been removed
*
* Get the path for the cserve binary to execute
*
* There is little need for anyone except a desktop environment to call this.
@ -435,6 +437,7 @@ typedef void (*Evas_Async_Events_Put_Cb)(void *target, Evas_Callback_Type t
*
* @since 1.8
*/
EINA_DEPRECATED
EAPI const char *evas_cserve_path_get(void);
/**

View File

@ -821,45 +821,9 @@ _evas_module_datadir_get(void)
return eina_prefix_data_get(pfx);
}
/* deprecated */
EAPI const char *
evas_cserve_path_get(void)
{
static char buf[PATH_MAX];
const char *lib;
Eina_Bool shutdown = EINA_FALSE;
if (!pfx)
{
shutdown = EINA_TRUE;
eina_init();
pfx = eina_prefix_new
(NULL, _evas_module_libdir_get, "EVAS", "evas", "checkme",
PACKAGE_BIN_DIR, PACKAGE_LIB_DIR,
PACKAGE_DATA_DIR, PACKAGE_DATA_DIR);
if (!pfx)
{
eina_shutdown();
return NULL;
}
}
lib = eina_prefix_lib_get(pfx);
if (!lib)
{
if (shutdown)
{
eina_prefix_free(pfx);
pfx = NULL;
eina_shutdown();
}
return NULL;
}
snprintf(buf, sizeof(buf), "%s/evas/cserve2/bin/%s/evas_cserve2",
lib, MODULE_ARCH);
if (shutdown)
{
eina_prefix_free(pfx);
pfx = NULL;
eina_shutdown();
}
return buf;
return NULL;
}