aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/client.h
blob: a00890f950986173bc4e50dbbd1abbb86ea2166c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2022 Egor Tensin <egor@tensin.name>
 * This file is part of the "cimple" project.
 * For details, see https://github.com/egor-tensin/cimple.
 * Distributed under the MIT License.
 */

#ifndef __CLIENT_H__
#define __CLIENT_H__

struct settings {
    const char* host;
    const char* port;
};

struct client;

int client_create(struct client**);
void client_destroy(struct client*);

int client_main(const struct client*, const struct settings*, int argc, const char** argv);

#endif