*/
struct cui *cui_init(void* platform_info,
- int (*js_map)(const struct js_event *e), int start_deamon)
+ int (*js_map)(const struct js_event *e), int start_daemon)
{
struct cui *cui;
unsigned int i;
/* Loop here for scripts that just started the server. */
retry_start:
- for (i = start_deamon ? 2 : 15; i; i--) {
+ for (i = start_daemon ? 2 : 15; i; i--) {
cui->client = discover_client_init(cui->waitset,
&cui_client_ops, cui);
if (cui->client || !i)
sleep(1);
}
- if (!cui->client && start_deamon) {
+ if (!cui->client && start_daemon) {
int result;
- start_deamon = 0;
+ start_daemon = 0;
result = pb_start_daemon(cui);
struct cui *cui_init(void* platform_info,
int (*js_map)(const struct js_event *e),
- int start_deamon);
+ int start_daemon);
struct nc_scr *cui_set_current(struct cui *cui, struct nc_scr *scr);
int cui_run(struct cui *cui);
void cui_item_edit(struct pmenu_item *item);
}
struct pbt_client *pbt_client_init(enum pbt_twin_backend backend,
- unsigned int width, unsigned int height, int start_deamon)
+ unsigned int width, unsigned int height, int start_daemon)
{
struct pbt_client *pbt_client;
unsigned int i;
/* Loop here for scripts that just started the server. */
retry_start:
- for (i = start_deamon ? 2 : 10; i; i--) {
+ for (i = start_daemon ? 2 : 10; i; i--) {
pbt_client->discover_client
= discover_client_init(pbt_client->waitset,
&pbt_client_ops, pbt_client);
sleep(1);
}
- if (!pbt_client->discover_client && start_deamon) {
+ if (!pbt_client->discover_client && start_daemon) {
int result;
- start_deamon = 0;
+ start_daemon = 0;
result = pb_start_daemon(pbt_client);
};
struct pbt_client *pbt_client_init(enum pbt_twin_backend backend,
- unsigned int width, unsigned int height, int start_deamon);
+ unsigned int width, unsigned int height, int start_daemon);
void pbt_client_destroy(struct pbt_client *client);
void pbt_client_resize(struct pbt_client *client);