summaryrefslogtreecommitdiff
path: root/src/bin/ipc.h
blob: 419f38921d8d0d09fbbda0d33accb762361ba3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef _IPC_H__
#define _IPC_H__ 1

#include "config.h"

typedef struct _Ipc_Instance Ipc_Instance;

struct _Ipc_Instance
{
   char *cmd;
   char *cd;
   char *background;
   char *name;
   char *role;
   char *title;
   char *icon_name;
   char *font;
   char *startup_id;
   char *startup_split;
   int x, y, w, h;
   Eina_Bool pos;
   Eina_Bool login_shell;
   Eina_Bool fullscreen;
   Eina_Bool iconic;
   Eina_Bool borderless;
   Eina_Bool override;
   Eina_Bool maximized;
   Eina_Bool hold;
   Eina_Bool nowm;
   Eina_Bool xterm_256color;
   Eina_Bool active_links;
   Config *config;
};

void ipc_init(void);
void ipc_shutdown(void);
Eina_Bool ipc_serve(void);
void ipc_instance_new_func_set(void (*func) (Ipc_Instance *inst));
Eina_Bool ipc_instance_add(Ipc_Instance *inst);
void ipc_instance_conn_free(void);

#endif