xen-vtx-unstable

annotate tools/xenstore/xenstored_domain.h @ 6774:4d899a738d59

merge?
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 13 15:05:49 2005 +0000 (2005-09-13)
parents f804b28871ba d4d69c509371
children e7c7196fa329 8ca0f98ba8e2
rev   line source
cl349@5357 1 /*
cl349@5357 2 Domain communications for Xen Store Daemon.
cl349@5357 3 Copyright (C) 2005 Rusty Russell IBM Corporation
cl349@5357 4
cl349@5357 5 This program is free software; you can redistribute it and/or modify
cl349@5357 6 it under the terms of the GNU General Public License as published by
cl349@5357 7 the Free Software Foundation; either version 2 of the License, or
cl349@5357 8 (at your option) any later version.
cl349@5357 9
cl349@5357 10 This program is distributed in the hope that it will be useful,
cl349@5357 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
cl349@5357 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cl349@5357 13 GNU General Public License for more details.
cl349@5357 14
cl349@5357 15 You should have received a copy of the GNU General Public License
cl349@5357 16 along with this program; if not, write to the Free Software
cl349@5357 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
cl349@5357 18 */
cl349@5478 19
cl349@5357 20 #ifndef _XENSTORED_DOMAIN_H
cl349@5357 21 #define _XENSTORED_DOMAIN_H
cl349@5357 22
cl349@5357 23 void handle_event(int event_fd);
cl349@5357 24
cl349@5357 25 /* domid, mfn, eventchn, path */
cl349@5855 26 void do_introduce(struct connection *conn, struct buffered_data *in);
cl349@5357 27
cl349@5357 28 /* domid */
cl349@5855 29 void do_release(struct connection *conn, const char *domid_str);
cl349@5357 30
cl349@5357 31 /* domid */
cl349@5855 32 void do_get_domain_path(struct connection *conn, const char *domid_str);
cl349@5357 33
cl349@5357 34 /* Returns the event channel handle */
cl349@5357 35 int domain_init(void);
cl349@5357 36
cl349@5478 37 /* Returns the implicit path of a connection (only domains have this) */
cl349@5478 38 const char *get_implicit_path(const struct connection *conn);
cl349@5357 39
cl349@5852 40 /* Read existing connection information from store. */
cl349@5852 41 void restore_existing_connections(void);
cl349@5852 42
kaf24@6043 43 /* Can connection attached to domain read/write. */
kaf24@6043 44 bool domain_can_read(struct connection *conn);
kaf24@6043 45 bool domain_can_write(struct connection *conn);
kaf24@6043 46
cl349@5357 47 #endif /* _XENSTORED_DOMAIN_H */