libx52  0.2.3
Saitek X52/X52Pro drivers for Linux/Unix
x52dcomm.h
Go to the documentation of this file.
1 /*
2  * Saitek X52 Pro MFD & LED driver
3  *
4  * Copyright (C) 2021 Nirenjan Krishnan (nirenjan@nirenjan.org)
5  *
6  * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
7  */
8 
20 #ifndef X52DCOMM_H
21 #define X52DCOMM_H
22 
23 #include <stddef.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
55 int x52d_dial_command(const char *sock_path);
56 
84 int x52d_send_command(int sock_fd, char *buffer, size_t bufin, size_t bufout);
85 
87 #ifdef __cplusplus
88 }
89 #endif
90 #endif // !defined X52DCOMM_H
91 
92 
x52d_dial_command
int x52d_dial_command(const char *sock_path)
Open a connection to the daemon.
x52d_send_command
int x52d_send_command(int sock_fd, char *buffer, size_t bufin, size_t bufout)
Send a command to the daemon and retrieve the response.