summaryrefslogtreecommitdiff
path: root/codecs/codecs.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-12-02 08:51:46 +0000
committerGuy Harris <guy@alum.mit.edu>2013-12-02 08:51:46 +0000
commit40b60cbf551c76d8eb1dc411a0712a3df7e08d52 (patch)
tree273a307bfbc1a5a8e552c9dc5429b28c73da04b3 /codecs/codecs.h
parent0cc1545d05be6f655c950904b1da776190f3af16 (diff)
downloadwireshark-40b60cbf551c76d8eb1dc411a0712a3df7e08d52.tar.gz
Do something less catastrophic than crashing if the same name is used in
two codec registrations. svn path=/trunk/; revision=53711
Diffstat (limited to 'codecs/codecs.h')
-rw-r--r--codecs/codecs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/codecs/codecs.h b/codecs/codecs.h
index f293e26f2d..6093b5559c 100644
--- a/codecs/codecs.h
+++ b/codecs/codecs.h
@@ -46,7 +46,7 @@ typedef void *(*codec_init_fn)(void);
typedef void (*codec_release_fn)(void *context);
typedef int (*codec_decode_fn)(void *context, const void *input, int inputSizeBytes, void *output, int *outputSizeBytes);
-extern void register_codec(const char *name, codec_init_fn init_fn, codec_release_fn release_fn, codec_decode_fn decode_fn);
+extern gboolean register_codec(const char *name, codec_init_fn init_fn, codec_release_fn release_fn, codec_decode_fn decode_fn);
extern codec_handle_t find_codec(const char *name);
extern void *codec_init(codec_handle_t codec);
extern void codec_release(codec_handle_t codec, void *context);