diff options
author | Andrej Kozemcak <andrej.kozemcak@pantheon.tech> | 2019-03-08 13:52:16 +0100 |
---|---|---|
committer | Andrej Kozemcak <andrej.kozemcak@pantheon.tech> | 2019-03-08 13:52:16 +0100 |
commit | 3b2275f5570fc11f17301ccf080df21a6a0573a6 (patch) | |
tree | 50d28ebf13eda21880b1a55ecf0599eeb93e85ed /src/plugins/openconfig/sys_util.h | |
parent | d7b6abb9e9e7a1e8eed4374f97374b7175126488 (diff) |
Move sys_util files to plugins root directory
Change-Id: I2c7041fd34a99ebbe8e7a20ce87da9f39e548458
Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'src/plugins/openconfig/sys_util.h')
-rw-r--r-- | src/plugins/openconfig/sys_util.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/plugins/openconfig/sys_util.h b/src/plugins/openconfig/sys_util.h deleted file mode 100644 index d525066..0000000 --- a/src/plugins/openconfig/sys_util.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2018 PANTHEON.tech. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __SYS_UTIL_H__ -#define __SYS_UTIL_H__ - -#include <sysrepo.h> -#include <sysrepo/xpath.h> -#include <sysrepo/plugins.h> - -#define XPATH_SIZE 2000 - -typedef struct -{ - char xpath_root[XPATH_SIZE]; - sr_val_t * values; - size_t values_cnt; -} sysr_values_ctx_t; - -char* xpath_find_first_key(const char *xpath, char *key, sr_xpath_ctx_t *state); -void log_recv_event(sr_notif_event_t event, const char *msg); -void log_recv_oper(sr_change_oper_t oper, const char *msg); -int ip_prefix_split(const char* ip_prefix); - -#endif /* __SYS_UTIL_H__ */ |