OrbbecSDK  1.5.7
OrbbecSDK: Software-Development-Kit for Orbbec 3D-Sensor devices
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 
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 
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 
void ob_set_logger_to_file(ob_log_severity severity, const char *directory, ob_error **error)
Set output log to file.
ob_context * ob_create_context_with_config(const char *config_path, ob_error **error)
create context with config
ob_device_list * ob_query_device_list(ob_context *context, ob_error **error)
Get the list of enumerated devices.
Provide structs commonly used in the SDK, enumerating constant definitions.
ob_context * ob_create_context(ob_error **error)
create context api
struct DeviceListImpl ob_device_list
Definition: ObTypes.h:50
struct DeviceImpl ob_device
Definition: ObTypes.h:48
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
struct ContextImpl ob_context
Definition: ObTypes.h:47
void ob_delete_context(ob_context *context, ob_error **error)
Delete context.
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...
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.
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_device * ob_create_net_device(ob_context *context, const char *address, uint16_t port, ob_error **error)
创建网络设备
enum OBLogSeverity ob_log_severity
The error class exposed by the SDK, users can get detailed error information according to the erro...
Definition: ObTypes.h:142