-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Update ml-remote function name, prefix 'ml_service'. 2. Hide internal enum and struct. Signed-off-by: Jaeyun Jung <[email protected]>
- Loading branch information
1 parent
0c61c37
commit 2777123
Showing
5 changed files
with
61 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
/** | ||
* Copyright (c) 2023 Samsung Electronics Co., Ltd. All Rights Reserved. | ||
* | ||
* @file ml-api-remote-service.c | ||
* @file ml-api-service-remote.c | ||
* @date 26 Jun 2023 | ||
* @brief ml-remote-service of NNStreamer/Service C-API | ||
* @brief ML remote service of NNStreamer/Service C-API | ||
* @see https://github.com/nnstreamer/nnstreamer | ||
* @author Gichan Jang <[email protected]> | ||
* @bug No known bugs except for NYI items | ||
|
@@ -23,6 +23,20 @@ | |
|
||
#define MAX_PORT_NUM_LEN 6U | ||
|
||
/** | ||
* @brief Enumeration for ml-remote service type. | ||
*/ | ||
typedef enum | ||
{ | ||
ML_REMOTE_SERVICE_TYPE_UNKNOWN = 0, | ||
ML_REMOTE_SERVICE_TYPE_MODEL_RAW, | ||
ML_REMOTE_SERVICE_TYPE_MODEL_URI, | ||
ML_REMOTE_SERVICE_TYPE_PIPELINE_RAW, | ||
ML_REMOTE_SERVICE_TYPE_PIPELINE_URI, | ||
|
||
ML_REMOTE_SERVICE_TYPE_MAX | ||
} ml_remote_service_type_e; | ||
|
||
/** | ||
* @brief Data struct for options. | ||
*/ | ||
|
@@ -470,7 +484,7 @@ _mlrs_create_edge_handle (nns_edge_h * edge_h, edge_info_s * edge_info) | |
* @brief Creates ml-service handle with given ml-option handle. | ||
*/ | ||
int | ||
ml_remote_service_create (ml_option_h option, ml_service_h * handle) | ||
ml_service_remote_create (ml_option_h option, ml_service_h * handle) | ||
{ | ||
ml_service_s *mls; | ||
_ml_remote_service_s *remote_s; | ||
|
@@ -527,7 +541,7 @@ ml_remote_service_create (ml_option_h option, ml_service_h * handle) | |
* @brief Register new information, such as neural network models or pipeline descriptions, on a remote server. | ||
*/ | ||
int | ||
ml_remote_service_register (ml_service_h handle, ml_option_h option, void *data, | ||
ml_service_remote_register (ml_service_h handle, ml_option_h option, void *data, | ||
size_t data_len) | ||
{ | ||
ml_service_s *mls = (ml_service_s *) handle; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters