libx52
0.2.3
Saitek X52/X52Pro drivers for Linux/Unix
daemon
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
83
int
x52d_send_command
(
int
sock_fd,
char
*buffer,
size_t
buflen);
84
86
#ifdef __cplusplus
87
}
88
#endif
89
#endif // !defined X52DCOMM_H
90
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 buflen)
Send a command to the daemon and retrieve the response.
Generated by
1.8.17