Move hash implementation to shared directory

This commit is contained in:
Lucas De Marchi 2014-10-03 00:29:18 -03:00
parent 74d1df6682
commit 0db718edcf
8 changed files with 10 additions and 14 deletions

View 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

View 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

View 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)));

View File

@ -32,6 +32,7 @@
#include <sys/utsname.h>
#include <sys/stat.h>
#include <shared/hash.h>
#include <shared/util.h>
#include "libkmod.h"

View File

@ -18,16 +18,14 @@
* 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;

View 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;

View File

@ -17,10 +17,10 @@
* 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>