File: serial.h

package info (click to toggle)
fence-virt 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 772 kB
  • sloc: ansic: 10,257; cpp: 382; makefile: 272; sh: 214; lex: 113; yacc: 105
file content (20 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __VIRT_SERIAL_H
#define __VIRT_SERIAL_H

#include <sys/select.h>

/* virt-sockets.c */
int domain_sock_setup(const char *domain, const char *socket_path);
int domain_sock_close(const char *domain);
int domain_sock_fdset(fd_set *set, int *max);

/* Find the domain name associated with a FD */
int domain_sock_name(int fd, char *outbuf, size_t buflen);
int domain_sock_cleanup(void);

/* virt-serial.c - event thread control functions */
int start_event_listener(const char *uri, const char *path, int mode, int *wake_fd);
int stop_event_listener(void);


#endif