|
Packit |
cac203 |
/*
|
|
Packit |
cac203 |
* teamd_zmq.h - Teamd ZeroMQ api
|
|
Packit |
cac203 |
* Copyright (C) 2013 Jiri Zupka <jzupka@redhat.com>
|
|
Packit |
cac203 |
*
|
|
Packit |
cac203 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
cac203 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
cac203 |
* License as published by the Free Software Foundation; either
|
|
Packit |
cac203 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
cac203 |
*
|
|
Packit |
cac203 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
cac203 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
cac203 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
cac203 |
* Lesser General Public License for more details.
|
|
Packit |
cac203 |
*
|
|
Packit |
cac203 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
cac203 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
cac203 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
cac203 |
*/
|
|
Packit |
cac203 |
|
|
Packit |
cac203 |
#ifndef _TEAMD_ZMQ_H_
|
|
Packit |
cac203 |
#define _TEAMD_ZMQ_H_
|
|
Packit |
cac203 |
|
|
Packit |
cac203 |
#ifdef ENABLE_ZMQ
|
|
Packit |
cac203 |
|
|
Packit |
cac203 |
int teamd_zmq_init(struct teamd_context *ctx);
|
|
Packit |
cac203 |
void teamd_zmq_fini(struct teamd_context *ctx);
|
|
Packit |
cac203 |
|
|
Packit |
cac203 |
#else
|
|
Packit |
cac203 |
|
|
Packit |
cac203 |
static inline int teamd_zmq_init(struct teamd_context *ctx)
|
|
Packit |
cac203 |
{
|
|
Packit |
cac203 |
return 0;
|
|
Packit |
cac203 |
}
|
|
Packit |
cac203 |
|
|
Packit |
cac203 |
static inline void teamd_zmq_fini(struct teamd_context *ctx)
|
|
Packit |
cac203 |
{
|
|
Packit |
cac203 |
}
|
|
Packit |
cac203 |
|
|
Packit |
cac203 |
#endif /* ENABLE_ZMQ */
|
|
Packit |
cac203 |
|
|
Packit |
cac203 |
#endif /* _TEAMD_ZMQ_H_ */
|