SDK Initialization
If you have any questions during the development, post them on the Issues page of GitHub.
ObsClient is a client used to access OBS in C language. It offers a series of APIs for interacting with OBS. You can use these APIs to manage and operate resources (such as buckets and objects) stored in OBS.
Before using the OBS C SDK to initiate an OBS request, you need to call the initialization API. When you are exiting the process, you need to call the initialization cancellation API to release resources.
Before using the C SDK, you must first call obs_initialize to complete the initialization. This API only needs to called once in a process.
obs_status ret_status = OBS_STATUS_BUTT; ret_status = obs_initialize(OBS_INIT_ALL); if (OBS_STATUS_OK != ret_status) { printf("obs_initialize failed(%s).\n", obs_get_status_name(ret_status)); return ret_status; } obs_deinitialize(); // Do not repeatedly call obs_initialize or obs_deinitialize, because these operations may lead to invalid memory access.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot