EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
logClient.h
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * SPDX-License-Identifier: EPICS
7 * EPICS Base is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
11 /* logClient.h,v 1.5.2.1 2003/07/08 00:08:06 jhill Exp */
12 /*
13  *
14  * Author: Jeffrey O. Hill
15  * Date: 080791
16  */
17 
18 #ifndef INClogClienth
19 #define INClogClienth 1
20 #include "libComAPI.h"
21 #include "osiSock.h" /* for 'struct in_addr' */
22 
23 /* include default log client interface for backward compatibility */
24 #include "iocLog.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 typedef void *logClientId;
31 LIBCOM_API logClientId epicsStdCall logClientCreate (
32  struct in_addr server_addr, unsigned short server_port);
33 LIBCOM_API void epicsStdCall logClientSend (logClientId id, const char *message);
34 LIBCOM_API void epicsStdCall logClientShow (logClientId id, unsigned level);
35 LIBCOM_API void epicsStdCall logClientFlush (logClientId id);
36 LIBCOM_API void epicsStdCall iocLogPrefix(const char* prefix);
37 
38 /* deprecated interface; retained for backward compatibility */
39 /* note: implementations are in iocLog.c, not logClient.c */
40 LIBCOM_API logClientId epicsStdCall logClientInit (void);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif /*INClogClienth*/