1*8b26181fSAndroid Build Coastguard Worker /* 2*8b26181fSAndroid Build Coastguard Worker * Copyright (c) 1993, 1994, 1995, 1996, 1998 3*8b26181fSAndroid Build Coastguard Worker * The Regents of the University of California. All rights reserved. 4*8b26181fSAndroid Build Coastguard Worker * 5*8b26181fSAndroid Build Coastguard Worker * Redistribution and use in source and binary forms, with or without 6*8b26181fSAndroid Build Coastguard Worker * modification, are permitted provided that: (1) source code distributions 7*8b26181fSAndroid Build Coastguard Worker * retain the above copyright notice and this paragraph in its entirety, (2) 8*8b26181fSAndroid Build Coastguard Worker * distributions including binary code include the above copyright notice and 9*8b26181fSAndroid Build Coastguard Worker * this paragraph in its entirety in the documentation or other materials 10*8b26181fSAndroid Build Coastguard Worker * provided with the distribution, and (3) all advertising materials mentioning 11*8b26181fSAndroid Build Coastguard Worker * features or use of this software display the following acknowledgement: 12*8b26181fSAndroid Build Coastguard Worker * ``This product includes software developed by the University of California, 13*8b26181fSAndroid Build Coastguard Worker * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14*8b26181fSAndroid Build Coastguard Worker * the University nor the names of its contributors may be used to endorse 15*8b26181fSAndroid Build Coastguard Worker * or promote products derived from this software without specific prior 16*8b26181fSAndroid Build Coastguard Worker * written permission. 17*8b26181fSAndroid Build Coastguard Worker * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18*8b26181fSAndroid Build Coastguard Worker * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19*8b26181fSAndroid Build Coastguard Worker * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20*8b26181fSAndroid Build Coastguard Worker */ 21*8b26181fSAndroid Build Coastguard Worker 22*8b26181fSAndroid Build Coastguard Worker #include "pcap/funcattrs.h" 23*8b26181fSAndroid Build Coastguard Worker 24*8b26181fSAndroid Build Coastguard Worker extern void rpcapd_log_set(int, int); 25*8b26181fSAndroid Build Coastguard Worker 26*8b26181fSAndroid Build Coastguard Worker typedef enum { 27*8b26181fSAndroid Build Coastguard Worker LOGPRIO_DEBUG, 28*8b26181fSAndroid Build Coastguard Worker LOGPRIO_INFO, 29*8b26181fSAndroid Build Coastguard Worker LOGPRIO_WARNING, 30*8b26181fSAndroid Build Coastguard Worker LOGPRIO_ERROR 31*8b26181fSAndroid Build Coastguard Worker } log_priority; 32*8b26181fSAndroid Build Coastguard Worker 33*8b26181fSAndroid Build Coastguard Worker extern void rpcapd_log(log_priority priority, 34*8b26181fSAndroid Build Coastguard Worker PCAP_FORMAT_STRING(const char *message), ...) PCAP_PRINTFLIKE(2, 3); 35