aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/sc_plugins.c2
-rw-r--r--src/plugins/sc_plugins.h26
2 files changed, 1 insertions, 27 deletions
diff --git a/src/plugins/sc_plugins.c b/src/plugins/sc_plugins.c
index 0a36afb..df191bf 100644
--- a/src/plugins/sc_plugins.c
+++ b/src/plugins/sc_plugins.c
@@ -13,8 +13,8 @@
* limitations under the License.
*/
-#include "sc_plugins.h"
#include "sc_model.h"
+#include "sc_plugins.h"
#include <dirent.h>
static int vpp_pid_start;
diff --git a/src/plugins/sc_plugins.h b/src/plugins/sc_plugins.h
index feec482..4a784fb 100644
--- a/src/plugins/sc_plugins.h
+++ b/src/plugins/sc_plugins.h
@@ -20,32 +20,6 @@
#include <sysrepo/values.h>
#include <sysrepo/plugins.h>
-#define ARG_CHECK(retval, arg) \
- do \
- { \
- if (NULL == (arg)) \
- { \
- SRP_LOG_ERR_MSG(#arg ":NULL pointer passed."); \
- return (retval); \
- } \
- } \
- while (0)
-
-#define ARG_CHECK2(retval, arg1, arg2) \
- ARG_CHECK(retval, arg1); \
- ARG_CHECK(retval, arg2)
-
-#define ARG_CHECK3(retval, arg1, arg2, arg3) \
- ARG_CHECK(retval, arg1); \
- ARG_CHECK(retval, arg2); \
- ARG_CHECK(retval, arg3)
-
-#define ARG_CHECK4(retval, arg1, arg2, arg3, arg4) \
- ARG_CHECK(retval, arg1); \
- ARG_CHECK(retval, arg2); \
- ARG_CHECK(retval, arg3); \
- ARG_CHECK(retval, arg4)
-
//functions that sysrepo-plugin need
int sr_plugin_init_cb(sr_session_ctx_t *session, void **private_ctx);
void sr_plugin_cleanup_cb(sr_session_ctx_t *session, void *private_ctx);