| OrbbecSDK 1.5.7 OrbbecSDK: Software-Development-Kit for Orbbec 3D-Sensor devices

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Context.h
Go to the documentation of this file.
1
12 #pragma once
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #include "ObTypes.h"
19
33 ob_context *ob_create_context(ob_error **error);
34
50 ob_context *ob_create_context_with_config(const char *config_path, ob_error **error);
51
65 void ob_delete_context(ob_context *context, ob_error **error);
66
82 ob_device_list *ob_query_device_list(ob_context *context, ob_error **error);
83
93 ob_device *ob_create_net_device(ob_context *context, const char *address, uint16_t port, ob_error **error);
94
114 void ob_set_device_changed_callback(ob_context *context, ob_device_changed_callback callback, void *user_data, ob_error **error);
115
132 void ob_enable_multi_device_sync(ob_context *context, uint64_t repeatInterval, ob_error **error);
133
147 void ob_set_logger_severity(ob_log_severity severity, ob_error **error);
148
165 void ob_set_logger_to_file(ob_log_severity severity, const char *directory, ob_error **error);
166
182
ob_set_logger_to_file
void ob_set_logger_to_file(ob_log_severity severity, const char *directory, ob_error **error)
Set output log to file.
ob_create_context_with_config
ob_context * ob_create_context_with_config(const char *config_path, ob_error **error)
create context with config
ob_query_device_list
ob_device_list * ob_query_device_list(ob_context *context, ob_error **error)
Get the list of enumerated devices.
ObTypes.h
Provide structs commonly used in the SDK, enumerating constant definitions.
ob_create_context
ob_context * ob_create_context(ob_error **error)
create context api
ob_device_list
struct DeviceListImpl ob_device_list
Definition: ObTypes.h:50
ob_device
struct DeviceImpl ob_device
Definition: ObTypes.h:48
ob_device_changed_callback
void(* ob_device_changed_callback)(ob_device_list *removed, ob_device_list *added, void *user_data)
Device change (up and down) callback.
Definition: ObTypes.h:1393
ob_context
struct ContextImpl ob_context
Definition: ObTypes.h:47
ob_delete_context
void ob_delete_context(ob_context *context, ob_error **error)
Delete context.
ob_set_logger_severity
void ob_set_logger_severity(ob_log_severity severity, ob_error **error)
Set the global log level and this will affect both the log level output to the console and the log ou...
ob_set_device_changed_callback
void ob_set_device_changed_callback(ob_context *context, ob_device_changed_callback callback, void *user_data, ob_error **error)
Set device plug-in callback function.
ob_enable_multi_device_sync
void ob_enable_multi_device_sync(ob_context *context, uint64_t repeatInterval, ob_error **error)
Activate the multi-device synchronization function to synchronize the clock of the created device(the...
ob_create_net_device
ob_device * ob_create_net_device(ob_context *context, const char *address, uint16_t port, ob_error **error)
创建网络设备
ob_log_severity
enum OBLogSeverity ob_log_severity
ob_error
The error class exposed by the SDK, users can get detailed error information according to the erro...
Definition: ObTypes.h:142