Add optional fd parameter to mod_connect() method
The fd parameter can be used to immediately connect to a display server, if an fd was obtained from sesman
This commit is contained in:
@@ -41,7 +41,7 @@ lib_mod_start(struct mod *mod, int w, int h, int bpp)
|
||||
/******************************************************************************/
|
||||
/* return error */
|
||||
static int
|
||||
lib_mod_connect(struct mod *mod)
|
||||
lib_mod_connect(struct mod *mod, int fd)
|
||||
{
|
||||
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_connect");
|
||||
LOG_DEVEL(LOG_LEVEL_TRACE, "out lib_mod_connect");
|
||||
|
||||
@@ -41,7 +41,7 @@ struct mod
|
||||
int version; /* internal version */
|
||||
/* client functions */
|
||||
int (*mod_start)(struct mod *v, int w, int h, int bpp);
|
||||
int (*mod_connect)(struct mod *v);
|
||||
int (*mod_connect)(struct mod *v, int fd);
|
||||
int (*mod_event)(struct mod *v, int msg, long param1, long param2,
|
||||
long param3, long param4);
|
||||
int (*mod_signal)(struct mod *v);
|
||||
|
||||
Reference in New Issue
Block a user