#include "Eldbus.h"
#include <Ecore.h>
#define BUS "org.Enlightenment"
#define PATH "/org/enlightenment"
#define PATH_TEST_SON "/org/enlightenment/son"
#define INTERFACE "org.enlightenment.Test"
{
printf("Hello\n");
return reply;
}
{
printf("Quit\n");
}
enum
{
TEST_SIGNAL_ALIVE = 0,
TEST_SIGNAL_HELLO
};
send_signal_alive(void *data)
{
Eldbus_Service_Interface *iface = data;
}
send_signal_hello(void *data)
{
Eldbus_Service_Interface *iface = data;
}
{
printf("eldbus_message_arguments_get() error\n");
return reply;
}
{
unsigned char byte;
printf("eldbus_message_arguments_get() error\n");
return reply;
}
{
unsigned int uint32;
printf("eldbus_message_arguments_get() error\n");
return reply;
}
{
int int32;
printf("eldbus_message_arguments_get() error\n");
return reply;
}
{
short int int16;
printf("eldbus_message_arguments_get() error\n");
return reply;
}
{
double d;
printf("eldbus_message_arguments_get() error\n");
return reply;
}
{
const char *txt;
printf("eldbus_message_arguments_get() error\n");
return reply;
}
_resp_async(void *data)
{
}
{
printf("Received a call to AsyncTest.\n");
printf("Response will be send in 5 seconds.\n");
return NULL;
}
[TEST_SIGNAL_ALIVE] = {"Alive", NULL, 0},
[TEST_SIGNAL_HELLO] = {
"Hello",
ELDBUS_ARGS({
"s",
"message" }), 0},
{ }
};
{
_hello
},
{
"Quit", NULL, NULL,
_quit, ELDBUS_METHOD_FLAG_DEPRECATED
},
_send_bool
},
_send_byte
},
_send_uint32
},
_send_int32
},
_send_int16
},
_send_double
},
_send_string
},
_async_test
},
{ }
};
INTERFACE, methods, signals
};
static void
{
Eldbus_Service_Interface *iface;
unsigned int reply;
iface = data;
{
printf("error on on_name_request\n");
return;
}
{
printf("error geting arguments on on_name_request\n");
return;
}
{
printf("error name already in use\n");
return;
}
}
int
main(void)
{
Eldbus_Service_Interface *iface;
on_name_request, iface);
return 0;
}