aboutsummaryrefslogtreecommitdiff
path: root/client-protocol.h
blob: cf99c1d96f556f606f115f70ea94c3ce90ba51a9 (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
#pragma once

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>

struct client_argv {
    uint16_t len;
    /* char arg[static len]; */
};

struct client_data {
    uint8_t maximized:1;
    uint8_t fullscreen:1;
    uint8_t hold:1;
    uint8_t login_shell:1;

    uint16_t cwd_len;
    uint16_t term_len;
    uint16_t title_len;
    uint16_t app_id_len;

    uint16_t argc;

    /* char cwd[static cwd_len]; */
    /* char term[static term_len]; */
    /* char title[static title_len]; */
    /* char app_id[static app_id_len]; */

    /* struct client_argv argv[static argc]; */
};