Skip to content

Commit

Permalink
system-plugin: move data code to plugin/data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
zinccyy committed Oct 25, 2022
1 parent 16f9e86 commit d480d30
Show file tree
Hide file tree
Showing 35 changed files with 64 additions and 64 deletions.
22 changes: 11 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ set(
src/plugin/subscription/rpc.c

# data
src/system/data/ip_address.c
src/system/data/dns_resolver/search.c
src/system/data/dns_resolver/search/list.c
src/system/data/dns_resolver/server.c
src/system/data/dns_resolver/server/list.c
src/system/data/ntp/server.c
src/system/data/ntp/server/list.c
src/system/data/authentication/authorized_key.c
src/system/data/authentication/authorized_key/list.c
src/system/data/authentication/local_user.c
src/system/data/authentication/local_user/list.c
src/plugin/data/system/ip_address.c
src/plugin/data/system/dns_resolver/search.c
src/plugin/data/system/dns_resolver/search/list.c
src/plugin/data/system/dns_resolver/server.c
src/plugin/data/system/dns_resolver/server/list.c
src/plugin/data/system/ntp/server.c
src/plugin/data/system/ntp/server/list.c
src/plugin/data/system/authentication/authorized_key.c
src/plugin/data/system/authentication/authorized_key/list.c
src/plugin/data/system/authentication/local_user.c
src/plugin/data/system/authentication/local_user/list.c

# system API
src/plugin/api/system/load.c
Expand Down
8 changes: 4 additions & 4 deletions src/plugin/api/system/authentication/change.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#include "plugin/common.h"
#include "libyang/tree_data.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"
#include "system/data/authentication/local_user/list.h"
#include "plugin/data/system/authentication/authorized_key.h"
#include "plugin/data/system/authentication/authorized_key/list.h"
#include "plugin/data/system/authentication/local_user.h"
#include "plugin/data/system/authentication/local_user/list.h"
#include "plugin/types.h"
#include "umgmt/db.h"
#include "umgmt/types.h"
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/api/system/authentication/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#include "check.h"
#include "load.h"
#include "plugin/common.h"
#include "system/data/authentication/local_user/list.h"
#include "system/data/authentication/authorized_key/list.h"
#include "plugin/data/system/authentication/local_user/list.h"
#include "plugin/data/system/authentication/authorized_key/list.h"

#include <sysrepo.h>
#include <utlist.h>
Expand Down
8 changes: 4 additions & 4 deletions src/plugin/api/system/authentication/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#include "plugin/types.h"
#include "plugin/common.h"

#include "system/data/authentication/authorized_key/list.h"
#include "system/data/authentication/authorized_key.h"
#include "system/data/authentication/local_user/list.h"
#include "system/data/authentication/local_user.h"
#include "plugin/data/system/authentication/authorized_key/list.h"
#include "plugin/data/system/authentication/authorized_key.h"
#include "plugin/data/system/authentication/local_user/list.h"
#include "plugin/data/system/authentication/local_user.h"
#include "umgmt/user.h"

#include <unistd.h>
Expand Down
10 changes: 5 additions & 5 deletions src/plugin/api/system/dns_resolver/change.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#include "plugin/common.h"

// data
#include "system/data/dns_resolver/server/list.h"
#include "system/data/dns_resolver/search/list.h"
#include "system/data/dns_resolver/search.h"
#include "system/data/dns_resolver/server.h"
#include "system/data/ip_address.h"
#include "plugin/data/system/dns_resolver/server/list.h"
#include "plugin/data/system/dns_resolver/search/list.h"
#include "plugin/data/system/dns_resolver/search.h"
#include "plugin/data/system/dns_resolver/server.h"
#include "plugin/data/system/ip_address.h"

#include <sysrepo.h>

Expand Down
4 changes: 2 additions & 2 deletions src/plugin/api/system/dns_resolver/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include "srpc/types.h"
#include "plugin/types.h"
#include "plugin/common.h"
#include "system/data/dns_resolver/search/list.h"
#include "system/data/dns_resolver/server/list.h"
#include "plugin/data/system/dns_resolver/search/list.h"
#include "plugin/data/system/dns_resolver/server/list.h"

#include <sysrepo.h>

Expand Down
8 changes: 4 additions & 4 deletions src/plugin/api/system/dns_resolver/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#include "plugin/common.h"

// data
#include "system/data/dns_resolver/server.h"
#include "system/data/dns_resolver/server/list.h"
#include "system/data/dns_resolver/search/list.h"
#include "system/data/ip_address.h"
#include "plugin/data/system/dns_resolver/server.h"
#include "plugin/data/system/dns_resolver/server/list.h"
#include "plugin/data/system/dns_resolver/search/list.h"
#include "plugin/data/system/ip_address.h"

#include <systemd/sd-bus.h>

Expand Down
4 changes: 2 additions & 2 deletions src/plugin/api/system/ntp/change.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#include "libyang/tree_data.h"
#include "sysrepo/xpath.h"
#include "sysrepo_types.h"
#include "system/data/ntp/server.h"
#include "system/data/ntp/server/list.h"
#include "plugin/data/system/ntp/server.h"
#include "plugin/data/system/ntp/server/list.h"

#include <assert.h>
#include <sysrepo.h>
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/api/system/ntp/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "check.h"
#include "load.h"
#include "plugin/common.h"
#include "system/data/ntp/server/list.h"
#include "plugin/data/system/ntp/server/list.h"

#include <srpc.h>
#include <utlist.h>
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/api/system/ntp/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include "plugin/common.h"

// data
#include "system/data/ntp/server.h"
#include "system/data/ntp/server/list.h"
#include "plugin/data/system/ntp/server.h"
#include "plugin/data/system/ntp/server/list.h"

#include <assert.h>
#include <string.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "list.h"
#include "system/data/authentication/authorized_key.h"
#include "plugin/data/system/authentication/authorized_key.h"

#include <string.h>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "local_user.h"
#include "system/data/authentication/authorized_key/list.h"
#include "plugin/data/system/authentication/authorized_key/list.h"

#include <stdlib.h>
#include <string.h>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "list.h"
#include "system/data/authentication/local_user.h"
#include "plugin/data/system/authentication/local_user.h"

#include <string.h>
#include <stdlib.h>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "list.h"
#include "system/data/dns_resolver/search.h"
#include "plugin/data/system/dns_resolver/search.h"

#include <string.h>
#include <stdlib.h>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "list.h"
#include "system/data/dns_resolver/server.h"
#include "plugin/data/system/dns_resolver/server.h"
#include "plugin/types.h"

#include <stdlib.h>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "list.h"
#include "system/data/ntp/server.h"
#include "plugin/data/system/ntp/server.h"
#include "plugin/types.h"

#include <string.h>
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions src/plugin/startup/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

// data manipulation
#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"
#include "system/data/dns_resolver/search/list.h"
#include "system/data/dns_resolver/server/list.h"
#include "system/data/ntp/server/list.h"
#include "plugin/data/system/authentication/authorized_key/list.h"
#include "plugin/data/system/authentication/local_user/list.h"
#include "plugin/data/system/ip_address.h"
#include "plugin/data/system/dns_resolver/search/list.h"
#include "plugin/data/system/dns_resolver/server/list.h"
#include "plugin/data/system/ntp/server/list.h"

#include <sysrepo.h>
#include <unistd.h>
Expand Down
22 changes: 11 additions & 11 deletions src/plugin/startup/store.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@
#include "plugin/api/system/authentication/store.h"

// data manipulation
#include "system/data/authentication/authorized_key.h"
#include "system/data/authentication/authorized_key/list.h"
#include "system/data/authentication/local_user.h"
#include "system/data/authentication/local_user/list.h"
#include "system/data/ip_address.h"
#include "system/data/dns_resolver/search.h"
#include "system/data/dns_resolver/search/list.h"
#include "system/data/dns_resolver/server.h"
#include "system/data/dns_resolver/server/list.h"
#include "system/data/ntp/server.h"
#include "system/data/ntp/server/list.h"
#include "plugin/data/system/authentication/authorized_key.h"
#include "plugin/data/system/authentication/authorized_key/list.h"
#include "plugin/data/system/authentication/local_user.h"
#include "plugin/data/system/authentication/local_user/list.h"
#include "plugin/data/system/ip_address.h"
#include "plugin/data/system/dns_resolver/search.h"
#include "plugin/data/system/dns_resolver/search/list.h"
#include "plugin/data/system/dns_resolver/server.h"
#include "plugin/data/system/dns_resolver/server/list.h"
#include "plugin/data/system/ntp/server.h"
#include "plugin/data/system/ntp/server/list.h"
#include "plugin/types.h"

#include <sysrepo.h>
Expand Down
8 changes: 4 additions & 4 deletions src/plugin/subscription/change.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include "srpc/ly_tree.h"
#include "sysrepo_types.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"
#include "system/data/ntp/server/list.h"
#include "plugin/data/system/authentication/local_user/list.h"
#include "plugin/data/system/dns_resolver/search/list.h"
#include "plugin/data/system/dns_resolver/server/list.h"
#include "plugin/data/system/ntp/server/list.h"
#include "plugin/types.h"
#include "umgmt/db.h"

Expand Down

0 comments on commit d480d30

Please sign in to comment.