1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

g13: Rename utils.c to g13tuple.c

* g13/utils.c: Rename to g13tuple.c.
* g13/utils.h: Rename to g13tuple.h.  Change all users.
* g13/Makefile.am: Adjust accordingly
--

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-02-11 13:32:30 +01:00
parent 4f152f3276
commit 82d12156ef
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
10 changed files with 24 additions and 20 deletions

View File

@ -36,7 +36,7 @@ g13_SOURCES = \
g13.c g13.h \
g13-common.c g13-common.h \
keyblob.h \
utils.c utils.h \
g13tuple.c g13tuple.h \
server.c server.h \
create.c create.h \
mount.c mount.h \
@ -56,7 +56,7 @@ g13_syshelp_SOURCES = \
g13-syshelp.c g13-syshelp.h \
g13-common.c g13-common.h \
keyblob.h \
utils.c utils.h \
g13tuple.c g13tuple.h \
sh-cmd.c \
sh-blockdev.c \
sh-dmcrypt.c
@ -66,12 +66,12 @@ g13_syshelp_LDADD = $(libcommon) \
$(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
module_tests = t-utils
module_tests = t-g13tuple
t_common_ldadd = $(libcommon) $(LIBGCRYPT_LIBS) \
$(LIBASSUAN_LIBS)
t_utils_SOURCES = t-utils.c utils.c
t_utils_LDADD = $(t_common_ldadd)
t_g13tuple_SOURCES = t-g13tuple.c g13tuple.c
t_g13tuple_LDADD = $(t_common_ldadd)
$(PROGRAMS) : $(libcommon) $(libcommonpth)

View File

@ -21,7 +21,7 @@
#define G13_BACKEND_H
#include "../common/membuf.h"
#include "utils.h" /* For tupledesc_t */
#include "g13tuple.h"
int be_parse_conttype_name (const char *name);
int be_is_supported_conttype (int conttype);

View File

@ -29,7 +29,11 @@
#include "g13.h"
#include <assuan.h>
#include "i18n.h"
#include "utils.h"
#include "g13tuple.h"
#include "keyblob.h"
#include "membuf.h"
#include "create.h"
/* Local data for this module. A pointer to this is stored in the
CTRL object of each connection. */

View File

@ -32,7 +32,7 @@
#include "keyblob.h"
#include "backend.h"
#include "utils.h"
#include "g13tuple.h"
#include "../common/call-gpg.h"
/* Create a new blob with all the session keys and other meta

View File

@ -1,4 +1,4 @@
/* utils.c - Utility functions
/* g13tuple.c - Tuple handling
* Copyright (C) 2009 Free Software Foundation, Inc.
* Copyright (C) 2009, 2015, 2016 Werner Koch
*
@ -26,7 +26,7 @@
#include <assert.h>
#include "g13.h"
#include "utils.h"
#include "g13tuple.h"
/* Definition of the tuple descriptor object. */

View File

@ -1,4 +1,4 @@
/* utils.h - Defs for utility fucthe dispatcher to the various backends.ntions
/* g13tuple.h - Tuple handling
* Copyright (C) 2009 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
@ -17,8 +17,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef G13_UTILS_H
#define G13_UTILS_H
#ifndef G13_G13TUPLE_H
#define G13_G13TUPLE_H
#include "../common/membuf.h"
@ -44,4 +44,4 @@ const void *next_tuple (tupledesc_t tupledesc,
unsigned int *r_tag, size_t *r_length);
#endif /*G13_UTILS_H*/
#endif /*G13_G13TUPLE_H*/

View File

@ -32,7 +32,7 @@
#include "keyblob.h"
#include "backend.h"
#include "utils.h"
#include "g13tuple.h"
#include "../common/sysutils.h"
#include "../common/call-gpg.h"
#include "mountinfo.h"

View File

@ -31,7 +31,7 @@
#include "mountinfo.h"
#include "keyblob.h"
#include "utils.h"
#include "g13tuple.h"

View File

@ -33,7 +33,7 @@
#include "g13-syshelp.h"
#include <assuan.h>
#include "i18n.h"
#include "utils.h"
#include "g13tuple.h"
#include "exectool.h"
#include "keyblob.h"

View File

@ -1,4 +1,4 @@
/* t-utils.c - Module test for utils.c
/* t-g13tuple.c - Module test for g13tuple.c
* Copyright (C) 2016 Werner Koch
*
* This file is part of GnuPG.
@ -25,9 +25,9 @@
#include "util.h"
#include "keyblob.h"
#include "utils.h"
#include "g13tuple.h"
#define PGM "t-utils"
#define PGM "t-g13tuple"
static int verbose;
static int debug;