diff options
author | Guy Harris <gharris@sonic.net> | 2020-10-13 18:48:46 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-10-14 04:51:45 +0000 |
commit | 6e6233521aa4f0e82b79219cb7e32912012d9ccf (patch) | |
tree | 1836305bf265c1aff78d61677343f3fa23bc2aac /ui/tap_export_pdu.h | |
parent | 92e1b110f3f70d295adb10ce0dc5fad9a7189912 (diff) |
Have WTAP_ERR_INTERNAL include an err_info string giving details.
That way, users won't just see "You got an internal error", the details
will be given, so they can report them in a bug.
Diffstat (limited to 'ui/tap_export_pdu.h')
-rw-r--r-- | ui/tap_export_pdu.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/tap_export_pdu.h b/ui/tap_export_pdu.h index 9ae2dea65f..133abd43ff 100644 --- a/ui/tap_export_pdu.h +++ b/ui/tap_export_pdu.h @@ -39,12 +39,16 @@ char *exp_pdu_pre_open(const char *tap_name, const char *filter, * Use the given file descriptor for writing an output file. Can only be called * once and exp_pdu_pre_open() must be called before. * -* @return 0 on success or a wtap error code. +* @param[out] err Will be set to an error code on failure. +* @param[out] err_info for some errors, a string giving more details of +* the error +* @return TRUE on success or FALSE on failure. */ -int exp_pdu_open(exp_pdu_t *data, int fd, const char *comment); +gboolean exp_pdu_open(exp_pdu_t *data, int fd, const char *comment, int *err, + gchar **err_info); /* Stops the PDUs export. */ -int exp_pdu_close(exp_pdu_t *exp_pdu_tap_data); +gboolean exp_pdu_close(exp_pdu_t *exp_pdu_tap_data, int *err, gchar **err_info); #ifdef __cplusplus } |