|
Monado OpenXR Runtime
|
Small cli application to control IPC service. More...
#include "util/u_file.h"#include "client/ipc_client.h"#include "client/ipc_client_connection.h"#include "ipc_client_generated.h"#include "xrt/xrt_results.h"#include "target_ipc_defaults.h"#include <getopt.h>#include <ctype.h>#include <stdlib.h>#include <string.h>
Data Structures | |
| struct | full_device_info |
Macros | |
| #define | P(...) fprintf(stdout, __VA_ARGS__) |
| #define | PE(...) fprintf(stderr, __VA_ARGS__) |
Typedefs | |
| typedef enum op_mode | op_mode_t |
Functions | |
| static xrt_result_t | get_device_list (struct ipc_connection *ipc_c, struct full_device_info *out_full) |
| Get the device list from a given connection. | |
| int | get_mode (struct ipc_connection *ipc_c) |
| int | set_primary (struct ipc_connection *ipc_c, int client_id) |
| int | set_focused (struct ipc_connection *ipc_c, int client_id) |
| int | toggle_io (struct ipc_connection *ipc_c, int client_id) |
| int | recenter_local_spaces (struct ipc_connection *ipc_c) |
| int | get_first_device_id (struct ipc_connection *ipc_c) |
| int | get_brightness (struct ipc_connection *ipc_c, int device_id) |
| int | set_brightness (struct ipc_connection *ipc_c, int device_id, const char *value) |
| int | main (int argc, char *argv[]) |
Small cli application to control IPC service.
|
static |
Get the device list from a given connection.
| ipc_c | The IPC connection. | |
| [out] | out_full | The full device info struct to fill out. |
References ipc_device_list::device_count, ipc_device_list::devices, ipc_device_list_entry::id, and XRT_SUCCESS.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References xrt_instance_info::app_info, ipc_client_connection_init(), ipc_client_connection_info::socket_filename, U_LOG_E, U_LOGGING_INFO, and XRT_SUCCESS.