2 * Copyright (C) 2013 Martin Willi
4 * Copyright (C) secunet Security Networks AG
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * @defgroup xpc_logger xpc_logger
29 typedef struct xpc_logger_t xpc_logger_t
;
32 * Connection specific logger over XPC.
37 * Implements logger_t.
42 * Set the IKE_SA unique identifier this logger logs for.
44 * @param ike_sa IKE_SA unique identifier
46 void (*set_ike_sa
)(xpc_logger_t
*this, uint32_t ike_sa
);
49 * Destroy a xpc_logger_t.
51 void (*destroy
)(xpc_logger_t
*this);
55 * Create a xpc_logger instance.
57 * @param conn XPC connection to send logging events to
60 xpc_logger_t
*xpc_logger_create(xpc_connection_t conn
);
62 #endif /** XPC_LOGGER_H_ @}*/