1 2 /*-------------------------------------------------------------*/ 3 typedef enum { 4 NETWIB_PRIV_NOTIFYTYPE_EMERG = 1, /* internal error */ 5 NETWIB_PRIV_NOTIFYTYPE_ALERT, /* user must change its program */ 6 NETWIB_PRIV_NOTIFYTYPE_WARNING, /* warning */ 7 NETWIB_PRIV_NOTIFYTYPE_DEBUGBT, /* debug with backtrace */ 8 NETWIB_PRIV_NOTIFYTYPE_DEBUG /* debug */ 9 } netwib_priv_notifytype; 10 11 /*-------------------------------------------------------------*/ 12 netwib_err netwib_priv_notify_string(netwib_priv_notifytype type, 13 netwib_conststring msg); 14 netwib_err netwib_priv_notify_fmt(netwib_priv_notifytype type, 15 netwib_conststring fmt, 16 ...); 17 netwib_err netwib_priv_notify_err(netwib_priv_notifytype type, 18 netwib_err error); 19