1 /*************************************************************************
3 * Copyright 2020 highstreet technologies GmbH and others
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 ***************************************************************************/
21 #include <cjson/cJSON.h>
28 } nts_mount_point_addressing_method_t;
45 uint16_t nc_callhome_port;
52 } controller_details_t;
54 cJSON* ves_create_common_event_header(const char *domain, const char *event_type, const char *hostname, int port, const char *priority, int seq_id);
55 cJSON* ves_create_common_event_header_721(const char *domain, const char *event_type, const char *hostname, int port, const char *priority, int seq_id, const char *stnd_defined_namespace);
57 nts_mount_point_addressing_method_t nts_mount_point_addressing_method_get(sr_session_ctx_t *current_session);
59 ves_details_t *ves_endpoint_details_get(sr_session_ctx_t *current_session, const char *custom_path);
60 void ves_details_free(ves_details_t *instance);
62 controller_details_t *controller_details_get(sr_session_ctx_t *current_session);
63 void controller_details_free(controller_details_t *instance);
65 int nts_utils_populate_info(sr_session_ctx_t *current_session, const char *function_type);
67 int nts_vercmp(const char *ver1, const char *ver2);