Commit 352d864a authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Moved function types to msg_types.h.

darcs-hash:20050908160631-65a35-190158ef1a2262572119a9b2f8236f55396eca57.gz
parent 879410cd
......@@ -45,13 +45,6 @@
#include <su_types.h>
#endif
typedef int msg_parse_f(su_home_t *, msg_header_t *, char *, int);
typedef int msg_print_f(char buf[], int bufsiz,
msg_header_t const *, int flags);
typedef char *msg_dup_f(msg_header_t *dst, msg_header_t const *src,
char *buf, int bufsiz);
typedef int msg_xtra_f(msg_header_t const *h, int offset);
/* These headers are critical for understanding the message */
#define msg_kind_single_critical msg_kind_single, 1
#define msg_kind_list_critical msg_kind_list, 1
......
......@@ -250,6 +250,15 @@ typedef enum {
msg_kind_prepend /**< New header is prepended */
} msg_header_kind_t;
struct su_home_s;
typedef int msg_parse_f(struct su_home_s *, msg_header_t *, char *, int);
typedef int msg_print_f(char buf[], int bufsiz,
msg_header_t const *, int flags);
typedef char *msg_dup_f(msg_header_t *dst, msg_header_t const *src,
char *buf, int bufsiz);
typedef int msg_xtra_f(msg_header_t const *h, int offset);
/** Factory object for a header.
*
* The #msg_hclass_t object, "header class", defines how a header is
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment