2020-11-21 20:21:18 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
struct client_argv {
|
|
|
|
|
uint16_t len;
|
|
|
|
|
/* char arg[static len]; */
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct client_data {
|
2020-11-22 00:12:23 +00:00
|
|
|
unsigned width;
|
|
|
|
|
unsigned height;
|
|
|
|
|
uint8_t size_type:1; // Values correspond to enum conf_size_type
|
2020-11-21 20:21:18 +01:00
|
|
|
uint8_t maximized:1;
|
|
|
|
|
uint8_t fullscreen:1;
|
|
|
|
|
uint8_t hold:1;
|
|
|
|
|
uint8_t login_shell:1;
|
2021-03-12 20:46:55 -03:00
|
|
|
uint8_t no_wait:1;
|
2020-11-21 20:21:18 +01:00
|
|
|
|
|
|
|
|
uint16_t cwd_len;
|
|
|
|
|
uint16_t term_len;
|
|
|
|
|
uint16_t title_len;
|
|
|
|
|
uint16_t app_id_len;
|
|
|
|
|
|
|
|
|
|
uint16_t argc;
|
|
|
|
|
|
2020-11-21 20:48:31 +01:00
|
|
|
/* char cwd[static cwd_len]; */
|
2020-11-21 20:21:18 +01:00
|
|
|
/* char term[static term_len]; */
|
|
|
|
|
/* char title[static title_len]; */
|
|
|
|
|
/* char app_id[static app_id_len]; */
|
|
|
|
|
|
|
|
|
|
/* struct client_argv argv[static argc]; */
|
|
|
|
|
};
|