forked from enlightenment/efl
parent
732d2e2836
commit
f8f467b4e5
|
@ -178,8 +178,8 @@ int ipc_init(char *pipe_name, void **data) {
|
|||
if(!server)
|
||||
return ECORE_CONFIG_ERR_FAIL;
|
||||
|
||||
// if(*server)
|
||||
// return ECORE_CONFIG_ERR_IGNORED;
|
||||
/* if(*server)
|
||||
return ECORE_CONFIG_ERR_IGNORED; */
|
||||
|
||||
ecore_init();
|
||||
if(ecore_ipc_init()<1)
|
||||
|
@ -188,15 +188,15 @@ int ipc_init(char *pipe_name, void **data) {
|
|||
if((p=getenv("HOME"))) { /* debug-only ### FIXME */
|
||||
char buf[PATH_MAX];
|
||||
str=malloc(1000*sizeof(char));
|
||||
int stale=1;
|
||||
int stale; stale=1;
|
||||
while (stale) {
|
||||
sprintf(str,"%s/.ecore/%s/%d",p,pipe_name,port);
|
||||
snprintf(buf,PATH_MAX,str);
|
||||
|
||||
if(!stat(buf,&st)) {
|
||||
E(0,"IPC/eCore: pipe \"%s\" already exists!?\n",buf);
|
||||
// if(unlink(buf))
|
||||
// E(0,"IPC/eCore: could not remove pipe \"%s\": %d\n",buf,errno); }}
|
||||
/* if(unlink(buf))
|
||||
E(0,"IPC/eCore: could not remove pipe \"%s\": %d\n",buf,errno); }}*/
|
||||
port++;
|
||||
} else {
|
||||
stale = 0;
|
||||
|
|
|
@ -139,7 +139,6 @@ char *ipc_bundle_list(Ecore_Config_Server *srv) {
|
|||
|
||||
|
||||
int ipc_bundle_new(Ecore_Config_Server *srv, const char *label) {
|
||||
//Ecore_Config_Bundle *ns=ecore_config_bundle_get_by_serial(srv, 0);
|
||||
if (ecore_config_bundle_new(srv, label))
|
||||
return ECORE_CONFIG_ERR_SUCC;
|
||||
return ECORE_CONFIG_ERR_FAIL; }
|
||||
|
@ -270,7 +269,7 @@ Ecore_Config_Server *ipc_init(char *pipe_name) {
|
|||
E(0,"ipc_init: could not load \"%s\": %s...\n",globbuf.gl_pathv[c],dlerror());
|
||||
else if(ret==ECORE_CONFIG_ERR_SUCC) {
|
||||
list=malloc(sizeof(Ecore_Config_Server));
|
||||
// memcpy(list, 0, sizeof(Ecore_Config_Server));
|
||||
/* memcpy(list, 0, sizeof(Ecore_Config_Server));*/
|
||||
if((ret=nm->ipc_init(pipe_name,&list->server))!=ECORE_CONFIG_ERR_SUCC)
|
||||
E(0,"ipc_init: could not initialize \"%s\": %d\n",globbuf.gl_pathv[c],ret);
|
||||
else {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/* azundris */
|
||||
|
||||
//#include <glib.h>
|
||||
/*#include <glib.h>*/
|
||||
|
||||
#include <sys/types.h>
|
||||
//#include <sys/time.h> /* gimetimeofday() */
|
||||
/*#include <sys/time.h>*/ /* gimetimeofday() */
|
||||
#include <stdio.h> /* NULL */
|
||||
#include <stdlib.h> /* malloc(), free() */
|
||||
#include <string.h> /* str...() */
|
||||
|
|
|
@ -14,7 +14,7 @@ typedef struct _eslist {
|
|||
|
||||
int parse_line(char *,char **,char **,char **,char **);
|
||||
char *unit_size(char *size);
|
||||
//ulong now(long delay);
|
||||
/*ulong now(long delay);*/
|
||||
void qsrt(void *a[],void *data,int lo,int hi,int (*compare)(const void *,const void *,const void *));
|
||||
int dlmulti(char *name,char *file,int flag,void **libr,const char *fmt, ...);
|
||||
|
||||
|
@ -53,6 +53,6 @@ int ecat(char **result, ...);
|
|||
|
||||
|
||||
|
||||
//ulong timeout_add(uint f,int(*fun)(void *),void *data);
|
||||
//int timeout_remove(ulong handle);
|
||||
/*ulong timeout_add(uint f,int(*fun)(void *),void *data);*/
|
||||
/*int timeout_remove(ulong handle);*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue