Files
libvirt/daemon/libvirtd.h
T

77 lines
2.1 KiB
C
Raw Normal View History

2007-02-14 01:40:09 +00:00
/*
2009-09-16 12:37:26 +01:00
* libvirtd.h: daemon data structure definitions
2007-02-14 01:40:09 +00:00
*
* Copyright (C) 2006-2012 Red Hat, Inc.
2007-02-14 01:40:09 +00:00
* Copyright (C) 2006 Daniel P. Berrange
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
2012-07-21 18:06:23 +08:00
* <http://www.gnu.org/licenses/>.
2007-02-14 01:40:09 +00:00
*
* Author: Daniel P. Berrange <berrange@redhat.com>
*/
#ifndef LIBVIRTD_H__
# define LIBVIRTD_H__
# define VIR_ENUM_SENTINELS
# include <config.h>
# include <rpc/types.h>
# include <rpc/xdr.h>
# include "remote_protocol.h"
# include "lxc_protocol.h"
2010-04-16 22:09:25 -04:00
# include "qemu_protocol.h"
2012-12-12 17:59:27 +00:00
# include "virlog.h"
2012-12-13 15:49:48 +00:00
# include "virthread.h"
2012-09-20 12:58:29 +01:00
# if WITH_SASL
# include "virnetsaslcontext.h"
# endif
# include "virnetserverprogram.h"
typedef struct daemonClientStream daemonClientStream;
typedef daemonClientStream *daemonClientStreamPtr;
typedef struct daemonClientPrivate daemonClientPrivate;
typedef daemonClientPrivate *daemonClientPrivatePtr;
2007-02-14 01:40:09 +00:00
/* Stores the per-client connection state */
struct daemonClientPrivate {
/* Hold while accessing any data except conn */
2009-01-15 19:56:05 +00:00
virMutex lock;
2008-12-04 22:16:40 +00:00
int domainEventCallbackID[VIR_DOMAIN_EVENT_ID_LAST];
2012-09-20 12:58:29 +01:00
# if WITH_SASL
virNetSASLSessionPtr sasl;
# endif
/* This is only valid if a remote open call has been made on this
* connection, otherwise it will be NULL. Also if remote close is
* called, it will be set back to NULL if that succeeds.
*/
virConnectPtr conn;
2007-02-14 01:40:09 +00:00
daemonClientStreamPtr streams;
bool keepalive_supported;
2007-02-14 01:40:09 +00:00
};
2012-09-20 12:58:29 +01:00
# if WITH_SASL
extern virNetSASLContextPtr saslCtxt;
# endif
extern virNetServerProgramPtr remoteProgram;
extern virNetServerProgramPtr qemuProgram;
2009-01-20 19:27:11 +00:00
2007-02-14 01:40:09 +00:00
#endif