]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pager: move pager.[ch] src/shared/ → src/basic/
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Apr 2018 17:57:56 +0000 (19:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Apr 2018 10:35:45 +0000 (12:35 +0200)
pager.[ch] doesn't use any APIs from src/libsystemd/ or src/shared/
hence there's no reason for it to be in src/shared/, let's move it to
src/basic/ instead.

This enables us to use pager.[ch] APIs from other code in src/basic/,
for example pager_have() and suchlike.

src/basic/meson.build
src/basic/pager.c [moved from src/shared/pager.c with 100% similarity]
src/basic/pager.h [moved from src/shared/pager.h with 100% similarity]
src/shared/meson.build

index 0175a454104a77a1375a0539875bd250912c2ea4..ed1609c5c8d12fa71aba974d8f62ebca21eecbb4 100644 (file)
@@ -127,6 +127,8 @@ basic_sources = files('''
         nss-util.h
         ordered-set.c
         ordered-set.h
+        pager.c
+        pager.h
         parse-util.c
         parse-util.h
         path-util.c
similarity index 100%
rename from src/shared/pager.c
rename to src/basic/pager.c
similarity index 100%
rename from src/shared/pager.h
rename to src/basic/pager.h
index 060b7f95a0debde3724226c2b7d834ceaf012a0d..d0cb38650b60e4f8536688204b58f82d151ba935 100644 (file)
@@ -69,8 +69,6 @@ shared_sources = '''
         nsflags.h
         output-mode.c
         output-mode.h
-        pager.c
-        pager.h
         path-lookup.c
         path-lookup.h
         ptyfwd.c