Function rs2_context_add_device
Defined in File rs_context.h
Function Documentation
-
rs2_device *rs2_context_add_device(rs2_context *ctx, const char *file, rs2_error **error)
Create a new device and add it to the context
- Parameters:
ctx – The context to which the new device will be added
file – The file from which the device should be created
error – [out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored
- Returns:
A pointer to a device that plays data from the file, or null in case of failure