Spanking works, I am learning\!

SVN revision: 8135
This commit is contained in:
handyande 2003-12-17 11:05:29 +00:00 committed by handyande
parent 732d2e2836
commit f8f467b4e5
4 changed files with 11 additions and 12 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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...() */

View File

@ -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);*/