unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob be70ad2d61d1b5c93b072331295035ad6eb2886f 959 bytes (raw)
name: util/hex-escape.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
#ifndef _HEX_ESCAPE_H
#define _HEX_ESCAPE_H

typedef enum hex_status {
    HEX_SUCCESS = 0,
    HEX_SYNTAX_ERROR,
    HEX_OUT_OF_MEMORY
} hex_status_t;

/*
 * The API is modelled on that for getline.
 *
 * If 'out' points to a NULL pointer a char array of the appropriate
 * size is allocated using talloc, and out_size is updated.
 *
 * If 'out' points to a non-NULL pointer, it assumed to describe an
 * existing char array, with the size given in *out_size.  This array
 * may be resized by talloc_realloc if needed; in this case *out_size
 * will also be updated.
 *
 * Note that it is an error to pass a NULL pointer for any parameter
 * of these routines.
 */

hex_status_t
hex_encode (void *talloc_ctx, const char *in, char **out,
            size_t *out_size);

hex_status_t
hex_decode (void *talloc_ctx, const char *in, char **out,
            size_t *out_size);

/*
 * Decode 'in' onto itself.
 */
hex_status_t
hex_decode_inplace (char *in);
#endif

debug log:

solving be70ad2 ...
found be70ad2 in https://yhetil.org/notmuch/026815054d3e01e6f29c0834d43ccabdf6eda481.1333231401.git.jani@nikula.org/
found e409626 in https://yhetil.org/notmuch/3431e1b916320f0ab19b412ad877955f446de443.1333231401.git.jani@nikula.org/ ||
	https://yhetil.org/notmuch/1324214111-32079-2-git-send-email-david@tethera.net/ ||
	https://yhetil.org/notmuch/1326591624-15493-2-git-send-email-david@tethera.net/

applying [1/2] https://yhetil.org/notmuch/3431e1b916320f0ab19b412ad877955f446de443.1333231401.git.jani@nikula.org/
diff --git a/util/hex-escape.h b/util/hex-escape.h
new file mode 100644
index 0000000..e409626

Checking patch util/hex-escape.h...
Applied patch util/hex-escape.h cleanly.

skipping https://yhetil.org/notmuch/1324214111-32079-2-git-send-email-david@tethera.net/ for e409626
skipping https://yhetil.org/notmuch/1326591624-15493-2-git-send-email-david@tethera.net/ for e409626
index at:
100644 e40962631ef88e5b94e13b6c8f3ff08dfa3e676b	util/hex-escape.h

applying [2/2] https://yhetil.org/notmuch/026815054d3e01e6f29c0834d43ccabdf6eda481.1333231401.git.jani@nikula.org/
diff --git a/util/hex-escape.h b/util/hex-escape.h
index e409626..be70ad2 100644

Checking patch util/hex-escape.h...
Applied patch util/hex-escape.h cleanly.

index at:
100644 be70ad2d61d1b5c93b072331295035ad6eb2886f	util/hex-escape.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).