Skip to content

Commit

Permalink
- moved proxy library to subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Sep 19, 2024
1 parent 24fa077 commit 4733c8d
Show file tree
Hide file tree
Showing 43 changed files with 41 additions and 56 deletions.
24 changes: 4 additions & 20 deletions client/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ SUBDIRS = utils

AM_CPPFLAGS = -I$(top_srcdir) $(DBUS_CFLAGS)

noinst_LTLIBRARIES = libclient.la libproxy.la

libclient_la_SOURCES = \
types.cc types.h \
commands.cc commands.h \
errors.cc errors.h

libclient_la_LIBADD = \
utils/libutils.la \
../dbus/libdbus.la

libproxy_la_SOURCES = \
proxy.cc proxy.h \
proxy-dbus.cc proxy-dbus.h \
proxy-lib.cc proxy-lib.h

bin_PROGRAMS = snapper

snapper_SOURCES = \
Expand Down Expand Up @@ -53,8 +37,8 @@ snapper_SOURCES = \
GlobalOptions.cc GlobalOptions.h

snapper_LDADD = \
libproxy.la \
libclient.la \
proxy/libproxy.la \
proxy/libclient.la \
../snapper/libsnapper.la \
utils/libutils.la \
../dbus/libdbus.la \
Expand All @@ -71,8 +55,8 @@ systemd_helper_SOURCES = \
misc.cc misc.h

systemd_helper_LDADD = \
libproxy.la \
libclient.la \
proxy/libproxy.la \
proxy/libclient.la \
../snapper/libsnapper.la \
utils/libutils.la \
../dbus/libdbus.la
Expand Down
2 changes: 1 addition & 1 deletion client/MyFiles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <iostream>

#include "proxy.h"
#include "proxy/proxy.h"
#include "utils/text.h"
#include "GlobalOptions.h"

Expand Down
2 changes: 1 addition & 1 deletion client/cleanup.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <functional>

#include "proxy.h"
#include "proxy/proxy.h"


/*
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-cleanup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#include "utils/HumanString.h"
#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "cleanup.h"
#include "misc.h"
#include "cmd.h"
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-create-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"


namespace snapper
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-create.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "misc.h"


Expand Down
2 changes: 1 addition & 1 deletion client/cmd-debug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <iostream>

#include "utils/text.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"


namespace snapper
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-delete-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <iostream>

#include "utils/text.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"


namespace snapper
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-delete.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"


namespace snapper
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-diff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "misc.h"
#include "MyFiles.h"

Expand Down
2 changes: 1 addition & 1 deletion client/cmd-get-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "misc.h"
#include "utils/TableFormatter.h"
#include "utils/CsvFormatter.h"
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-list-configs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "misc.h"
#include "utils/TableFormatter.h"
#include "utils/CsvFormatter.h"
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "locker.h"
#include "misc.h"
#include "utils/TableFormatter.h"
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-modify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "misc.h"


Expand Down
2 changes: 1 addition & 1 deletion client/cmd-mount.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <iostream>

#include "utils/text.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"


namespace snapper
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-rollback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "misc.h"


Expand Down
2 changes: 1 addition & 1 deletion client/cmd-set-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <iostream>

#include "utils/text.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "misc.h"


Expand Down
2 changes: 1 addition & 1 deletion client/cmd-setup-quota.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <iostream>

#include "utils/text.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"


namespace snapper
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "MyFiles.h"


Expand Down
2 changes: 1 addition & 1 deletion client/cmd-umount.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <iostream>

#include "utils/text.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"


namespace snapper
Expand Down
2 changes: 1 addition & 1 deletion client/cmd-undochange.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "utils/text.h"
#include "utils/help.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "MyFiles.h"


Expand Down
2 changes: 1 addition & 1 deletion client/cmd-xadiff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include <snapper/XAttributes.h>

#include "utils/text.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"
#include "proxy.h"
#include "MyFiles.h"


Expand Down
2 changes: 1 addition & 1 deletion client/cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "config.h"

#include "proxy.h"
#include "proxy/proxy.h"
#include "GlobalOptions.h"


Expand Down
2 changes: 1 addition & 1 deletion client/locker.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/


#include "proxy.h"
#include "proxy/proxy.h"


namespace snapper
Expand Down
2 changes: 1 addition & 1 deletion client/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "client/utils/text.h"
#include "client/utils/GetOpts.h"
#include "proxy.h"
#include "proxy/proxy.h"


using namespace snapper;
Expand Down
2 changes: 1 addition & 1 deletion client/commands.cc → client/proxy/commands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "commands.h"
#include "errors.h"
#include "utils/text.h"
#include "../utils/text.h"
#include "dbus/DBusPipe.h"
#include "snapper/AppUtil.h"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion client/errors.cc → client/proxy/errors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <snapper/AppUtil.h>
#include <snapper/Snapper.h>

#include "utils/text.h"
#include "../utils/text.h"

#include "errors.h"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion client/proxy-dbus.cc → client/proxy/proxy-dbus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "proxy-dbus.h"
#include "commands.h"
#include "utils/text.h"
#include "../utils/text.h"


using namespace std;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/proxy.cc → client/proxy/proxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <snapper/AppUtil.h>
#include <snapper/SnapperDefines.h>

#include "utils/text.h"
#include "../utils/text.h"
#include "proxy.h"


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions client/snapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
#include "utils/text.h"
#include "utils/Table.h"
#include "utils/GetOpts.h"
#include "proxy/errors.h"
#include "proxy/proxy.h"

#include "errors.h"
#include "proxy.h"
#include "GlobalOptions.h"
#include "cmd.h"

Expand Down
4 changes: 2 additions & 2 deletions client/systemd-helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

#include "utils/text.h"
#include "utils/GetOpts.h"
#include "proxy/proxy.h"
#include "proxy/errors.h"

#include "proxy.h"
#include "cleanup.h"
#include "errors.h"
#include "misc.h"


Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ AC_CONFIG_FILES([
server/Makefile
client/Makefile
client/utils/Makefile
client/proxy/Makefile
scripts/Makefile
pam/Makefile
data/Makefile
Expand Down
2 changes: 1 addition & 1 deletion po/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ XGETTEXT = xgettext
MSGFMT = msgfmt
MSGMERGE = msgmerge

SRCFILES = $(wildcard ../client/*.cc ../client/*.h ../client/utils/*.cc)
SRCFILES = $(wildcard ../client/*.cc ../client/*.h ../client/utils/*.cc ../client/proxy/*.cc)

POFILES = $(wildcard *.po)

Expand Down
2 changes: 1 addition & 1 deletion zypp-plugin/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ snapper_zypp_plugin_SOURCES = \
zypp-plugin.cc zypp-plugin.h

snapper_zypp_plugin_LDADD = \
../client/libclient.la \
../client/proxy/libclient.la \
../snapper/libsnapper.la \
../dbus/libdbus.la \
../stomp/libstomp.la \
Expand Down
4 changes: 2 additions & 2 deletions zypp-plugin/snapper-zypp-plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
#include "dbus/DBusConnection.h"
#include "snapper/Exception.h"
#include "snapper/Log.h"
#include "client/commands.h"
#include "client/errors.h"
#include "client/proxy/commands.h"
#include "client/proxy/errors.h"

#include "snapper-zypp-plugin.h"

Expand Down

0 comments on commit 4733c8d

Please sign in to comment.