]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Move hash implementation to shared directory
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 3 Oct 2014 03:29:18 +0000 (00:29 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 3 Oct 2014 03:40:11 +0000 (00:40 -0300)
Makefile.am
libkmod/docs/Makefile.am
libkmod/libkmod-internal.h
libkmod/libkmod.c
shared/hash.c [moved from libkmod/libkmod-hash.c with 99% similarity]
shared/hash.h [moved from libkmod/libkmod-hash.h with 100% similarity]
testsuite/test-hash.c
tools/depmod.c

index 7f65e315edca9e7c3d7c897e3a55d2228e969508..4971be4a4d06652f22093bad9a3445b852fb28a1 100644 (file)
@@ -48,10 +48,10 @@ libkmod_libkmod_util_la_SOURCES = \
        shared/missing.h \
        shared/array.c \
        shared/array.h \
+       shared/hash.c \
+       shared/hash.h \
        shared/util.c \
        shared/util.h \
-       libkmod/libkmod-hash.c \
-       libkmod/libkmod-hash.h \
        libkmod/libkmod-util.c \
        libkmod/libkmod-util.h
 
index 1fd6b900c8adc0d43b50403e4e7f772588bd899a..cd3bb162e87ffd7d0e27f970841b5a109d192cb5 100644 (file)
@@ -22,7 +22,6 @@ CFILE_GLOB = $(top_srcdir)/libkmod/libkmod.c $(top_srcdir)/libkmod/libkmod-modul
 
 IGNORE_HFILES = libkmod-internal.h \
                libkmod-util.h \
-               libkmod-hash.h \
                libkmod-index.h
 
 content_files = version.xml
index 79f1a136ce3868d1abac46edc3459d896b79450e..83a5bc2f3debbaa751f0f8d669efe6d6ed0a7bda 100644 (file)
@@ -146,9 +146,6 @@ void kmod_module_set_visited(struct kmod_module *mod, bool visited) __attribute_
 void kmod_module_set_builtin(struct kmod_module *mod, bool builtin) __attribute__((nonnull((1))));
 void kmod_module_set_required(struct kmod_module *mod, bool required) __attribute__((nonnull(1)));
 
-/* libkmod-hash.c */
-
-#include "libkmod-hash.h"
 
 /* libkmod-file.c */
 struct kmod_file *kmod_file_open(const struct kmod_ctx *ctx, const char *filename) _must_check_ __attribute__((nonnull(1,2)));
index 89d70c3e5bf4d2646b6b991df2b334a7b3b619ae..3dc5a2b4b73e2fd59e8eff46c351a96ac51b6471 100644 (file)
@@ -32,6 +32,7 @@
 #include <sys/utsname.h>
 #include <sys/stat.h>
 
+#include <shared/hash.h>
 #include <shared/util.h>
 
 #include "libkmod.h"
similarity index 99%
rename from libkmod/libkmod-hash.c
rename to shared/hash.c
index 9b4d1f18db65416194be5d377b5e571518fd32ef..d2f5a7892356c3eeb11911c23e42562ca8a76f37 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <shared/util.h>
-
-#include "libkmod.h"
-#include "libkmod-hash.h"
-
-#include "libkmod-util.h"
+#include <inttypes.h>
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 
+#include <shared/hash.h>
+#include <shared/util.h>
+
 struct hash_entry {
        const char *key;
        const void *value;
similarity index 100%
rename from libkmod/libkmod-hash.h
rename to shared/hash.h
index 110c4d17172e5560305e790ba251835e77a22f45..61260d9c624aee1a5aee86602b5f30841b440c85 100644 (file)
@@ -23,7 +23,8 @@
 #include <errno.h>
 #include <unistd.h>
 
-#include <libkmod-hash.h>
+#include <shared/hash.h>
+
 #include "testsuite.h"
 
 static int freecount;
index e1e08f6713c394e389a4abceeb1e34fc8cb19814..69c3f3f07a46a9caa534e4e6e2fa1d527f7dceb2 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 #include "libkmod.h"
-#include "libkmod-hash.h"
 #include "libkmod-util.h"
 
 #include <shared/array.h>
+#include <shared/hash.h>
 #include <shared/macro.h>
 #include <shared/util.h>