tizen 2.3 release
[external/buxton.git] / src / shared / buxtonclient.h
1 /*
2  * This file is part of buxton.
3  *
4  * Copyright (C) 2013 Intel Corporation
5  *
6  * buxton is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as
8  * published by the Free Software Foundation; either version 2.1
9  * of the License, or (at your option) any later version.
10  */
11
12 /**
13  * \file client.h Internal header
14  * This file is used internally by buxton to provide functionality
15  * used for buxtonctl
16  */
17 #pragma once
18
19 #ifdef HAVE_CONFIG_H
20         #include "config.h"
21 #endif
22
23 #include <stdbool.h>
24
25 /**
26  * Used to communicate with Buxton
27  */
28 typedef struct BuxtonClient {
29         int fd; /**<The file descriptor for the connection */
30         bool direct; /**<Only used for direction connections */
31         pid_t pid; /**<Process ID, used within libbuxton */
32         uid_t uid; /**<User ID of currently using user */
33 } _BuxtonClient;
34
35 /*
36  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
37  *
38  * Local variables:
39  * c-basic-offset: 8
40  * tab-width: 8
41  * indent-tabs-mode: t
42  * End:
43  *
44  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
45  * :indentSize=8:tabSize=8:noTabs=false:
46  */