Skip to content

Commit

Permalink
system-plugin: move API code to plugin/api directory
Browse files Browse the repository at this point in the history
  • Loading branch information
zinccyy committed Oct 25, 2022
1 parent 70c9841 commit 16f9e86
Show file tree
Hide file tree
Showing 37 changed files with 45 additions and 45 deletions.
32 changes: 16 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ set(
src/system/data/authentication/local_user/list.c

# system API
src/system/api/load.c
src/system/api/check.c
src/system/api/store.c
src/system/api/change.c
src/system/api/ntp/load.c
src/system/api/ntp/check.c
src/system/api/ntp/store.c
src/system/api/ntp/change.c
src/system/api/dns_resolver/load.c
src/system/api/dns_resolver/check.c
src/system/api/dns_resolver/store.c
src/system/api/dns_resolver/change.c
src/system/api/authentication/load.c
src/system/api/authentication/check.c
src/system/api/authentication/store.c
src/system/api/authentication/change.c
src/plugin/api/system/load.c
src/plugin/api/system/check.c
src/plugin/api/system/store.c
src/plugin/api/system/change.c
src/plugin/api/system/ntp/load.c
src/plugin/api/system/ntp/check.c
src/plugin/api/system/ntp/store.c
src/plugin/api/system/ntp/change.c
src/plugin/api/system/dns_resolver/load.c
src/plugin/api/system/dns_resolver/check.c
src/plugin/api/system/dns_resolver/store.c
src/plugin/api/system/dns_resolver/change.c
src/plugin/api/system/authentication/load.c
src/plugin/api/system/authentication/check.c
src/plugin/api/system/authentication/store.c
src/plugin/api/system/authentication/change.c
)

# get sysrepo version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "change.h"
#include "plugin/common.h"
#include "libyang/tree_data.h"
#include "system/api/authentication/store.h"
#include "plugin/api/system/authentication/store.h"
#include "system/data/authentication/authorized_key.h"
#include "system/data/authentication/authorized_key/list.h"
#include "system/data/authentication/local_user.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/plugin/startup/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
// API for getting system data
#include "srpc/common.h"
#include "srpc/ly_tree.h"
#include "system/api/load.h"
#include "system/api/authentication/load.h"
#include "system/api/dns_resolver/load.h"
#include "plugin/api/system/load.h"
#include "plugin/api/system/authentication/load.h"
#include "plugin/api/system/dns_resolver/load.h"

// data manipulation
#include "system/api/ntp/load.h"
#include "plugin/api/system/ntp/load.h"
#include "system/data/authentication/authorized_key/list.h"
#include "system/data/authentication/local_user/list.h"
#include "system/data/ip_address.h"
Expand Down
18 changes: 9 additions & 9 deletions src/plugin/startup/store.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
#include "srpc/common.h"
#include "srpc/ly_tree.h"
#include "srpc/types.h"
#include "system/api/authentication/check.h"
#include "system/api/authentication/load.h"
#include "system/api/check.h"
#include "system/api/ntp/check.h"
#include "system/api/ntp/store.h"
#include "system/api/store.h"
#include "system/api/dns_resolver/store.h"
#include "system/api/dns_resolver/check.h"
#include "system/api/authentication/store.h"
#include "plugin/api/system/authentication/check.h"
#include "plugin/api/system/authentication/load.h"
#include "plugin/api/system/check.h"
#include "plugin/api/system/ntp/check.h"
#include "plugin/api/system/ntp/store.h"
#include "plugin/api/system/store.h"
#include "plugin/api/system/dns_resolver/store.h"
#include "plugin/api/system/dns_resolver/check.h"
#include "plugin/api/system/authentication/store.h"

// data manipulation
#include "system/data/authentication/authorized_key.h"
Expand Down
22 changes: 11 additions & 11 deletions src/plugin/subscription/change.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "srpc/common.h"
#include "srpc/ly_tree.h"
#include "sysrepo_types.h"
#include "system/api/authentication/load.h"
#include "plugin/api/system/authentication/load.h"
#include "system/data/authentication/local_user/list.h"
#include "system/data/dns_resolver/search/list.h"
#include "system/data/dns_resolver/server/list.h"
Expand All @@ -27,20 +27,20 @@
#include "umgmt/db.h"

// Load API
#include "system/api/load.h"
#include "system/api/dns_resolver/load.h"
#include "system/api/ntp/load.h"
#include "plugin/api/system/load.h"
#include "plugin/api/system/dns_resolver/load.h"
#include "plugin/api/system/ntp/load.h"

// Change API
#include "system/api/change.h"
#include "system/api/dns_resolver/change.h"
#include "system/api/ntp/change.h"
#include "system/api/authentication/change.h"
#include "plugin/api/system/change.h"
#include "plugin/api/system/dns_resolver/change.h"
#include "plugin/api/system/ntp/change.h"
#include "plugin/api/system/authentication/change.h"

// Store API
#include "system/api/store.h"
#include "system/api/dns_resolver/store.h"
#include "system/api/ntp/store.h"
#include "plugin/api/system/store.h"
#include "plugin/api/system/dns_resolver/store.h"
#include "plugin/api/system/ntp/store.h"

#include <sysrepo.h>
#include <sysrepo/xpath.h>
Expand Down
8 changes: 4 additions & 4 deletions tests/system_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
#include "plugin/context.h"

// store API
#include "system/api/store.h"
#include "plugin/api/system/store.h"

// load API
#include "system/api/load.h"
#include "plugin/api/system/load.h"

// check API
#include "system/api/check.h"
#include "plugin/api/system/check.h"

// ntp load API
#include "system/api/dns_resolver/load.h"
#include "plugin/api/system/dns_resolver/load.h"

// init functionality
static int setup(void **state);
Expand Down

0 comments on commit 16f9e86

Please sign in to comment.