libpurple/protocols/zephyr/com_err.h

Tue, 05 Nov 2019 21:07:41 -0500

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Tue, 05 Nov 2019 21:07:41 -0500
changeset 40150
eda298799a8e
parent 39829
ce056c64e426
permissions
-rw-r--r--

Add some NULL checks to silence scan-build.

/*
 * Header file for common error description library.
 *
 * Copyright 1988, Student Information Processing Board of the
 * Massachusetts Institute of Technology.
 *
 * For copyright and distribution info, see the documentation supplied
 * with this package.
 */

#ifndef PURPLE_ZEPHYR_COM_ERR_H
#define PURPLE_ZEPHYR_COM_ERR_H

#define COM_ERR_BUF_LEN 25

#include <stdarg.h>

typedef void (*error_handler_t)(const char *, long, const char *, va_list);
extern error_handler_t com_err_hook;
void com_err(const char *, long, const char *, ...);
const char *error_message(long);
const char *error_message_r(long, char *);
error_handler_t set_com_err_hook(error_handler_t);
error_handler_t reset_com_err_hook(void);

#endif /* PURPLE_ZEPHYR_COM_ERR_H */

mercurial