Browse Source

Remove sr_copypaste.h. Use private.h

Serj Kalichev 1 year ago
parent
commit
4579f88e42
6 changed files with 5 additions and 20 deletions
  1. 0 1
      src/Makefile.am
  2. 1 1
      src/pline.c
  3. 4 0
      src/private.h
  4. 0 1
      src/show.c
  5. 0 16
      src/sr_copypaste.h
  6. 0 1
      src/syms.c

+ 0 - 1
src/Makefile.am

@@ -12,7 +12,6 @@ kplugin_sysrepo_la_SOURCES += \
 	src/plugin.c \
 	src/private.h \
 	src/syms.c \
-	src/sr_copypaste.h \
 	src/sr_copypaste.c \
 	src/pline.h \
 	src/pline.c \

+ 1 - 1
src/pline.c

@@ -17,7 +17,7 @@
 #include <sysrepo/values.h>
 #include <libyang/tree_edit.h>
 
-#include "sr_copypaste.h"
+#include "private.h"
 #include "pline.h"
 
 

+ 4 - 0
src/private.h

@@ -49,6 +49,10 @@ int srp_show(kcontext_t *context);
 int srp_show_running(kcontext_t *context);
 int srp_deactivate(kcontext_t *context);
 
+// Sysrepo copy-paste
+int sr_ly_module_is_internal(const struct lys_module *ly_mod);
+int sr_module_is_internal(const struct lys_module *ly_mod);
+
 // Private
 bool_t show_xpath(sr_session_ctx_t *sess, const char *xpath, uint32_t flags);
 

+ 0 - 1
src/show.c

@@ -14,7 +14,6 @@
 #include <sysrepo/values.h>
 #include <libyang/tree_edit.h>
 
-#include "sr_copypaste.h"
 #include "pline.h"
 #include "private.h"
 

+ 0 - 16
src/sr_copypaste.h

@@ -1,16 +0,0 @@
-#ifndef _sr_copypaste_h
-#define _sr_copypaste_h
-
-
-#include <sysrepo.h>
-#include <sysrepo/xpath.h>
-
-
-int
-sr_ly_module_is_internal(const struct lys_module *ly_mod);
-
-int
-sr_module_is_internal(const struct lys_module *ly_mod);
-
-
-#endif // _sr_copypaste_h

+ 0 - 1
src/syms.c

@@ -19,7 +19,6 @@
 #include <sysrepo.h>
 #include <sysrepo/xpath.h>
 
-#include "sr_copypaste.h"
 #include "pline.h"
 #include "private.h"