SFI Interface Reference

/opt/src/beast/sfi/sficomport.h

SYNOPSIS

DESCRIPTION

_SfiComPort

/opt/src/beast/sfi/sficomport.h:32
struct _SfiComPort
{
  gchar               *ident;
  guint                ref_count;
  GPollFD              pfd              [2];
  guint                connected;
  guint                reaped;
  guint                sigterm_sent;
  guint                sigkill_sent;
  guint                exit_signal_sent;
  guint                dumped_core;
  SfiComPortLink      *link;
  guint                n;
  guint8              *data;
  guint                allocated;
  _SfiComPort::$1      wbuffer;
  guint                hlen;
  guint8               header           [8];
  guint                dlen;
  guint8              *data;
  _SfiComPort::$2      rbuffer;
  SfiRing             *rvalues;
  GScanner            *scanner;
  SfiComPortClosedFunc close_func;
  gpointer             close_data;
  gint                 remote_pid;
  gint                 exit_code;
  gint                 exit_signal;
};

_SfiComPortLink

/opt/src/beast/sfi/sficomport.h:65
struct _SfiComPortLink
{
  BirnetMutex   mutex;
  guint         ref_count;
  SfiComPort   *port1;
  BirnetThread *thread1;
  SfiComPort   *port2;
  BirnetThread *thread2;
  SfiRing      *p1queue;
  SfiRing      *p2queue;
  gboolean      waiting;
  BirnetCond    wcond;
};

sfi_com_port_close_remote

/opt/src/beast/sfi/sficomport.h:117
void  sfi_com_port_close_remote 
(SfiComPort *port,
 gboolean    terminate_child);

sfi_com_port_create_linked

/opt/src/beast/sfi/sficomport.h:93
void  sfi_com_port_create_linked 
(const gchar  *ident1,
 BirnetThread *thread1,
 SfiComPort  **port1,
 const gchar  *ident2,
 BirnetThread *thread2,
 SfiComPort  **port2);

sfi_com_port_from_child

/opt/src/beast/sfi/sficomport.h:86
SfiComPort*  sfi_com_port_from_child 
(const gchar *ident,
 gint         remote_input,
 gint         remote_output,
 gint         remote_pid);

sfi_com_port_from_pipe

/opt/src/beast/sfi/sficomport.h:82
SfiComPort*  sfi_com_port_from_pipe 
(const gchar *ident,
 gint         remote_input,
 gint         remote_output);

sfi_com_port_get_poll_fds

/opt/src/beast/sfi/sficomport.h:107
GPollFD*  sfi_com_port_get_poll_fds 
(SfiComPort *port,
 guint      *n_pfds);

sfi_com_port_io_pending

/opt/src/beast/sfi/sficomport.h:108

sfi_com_port_process_io

/opt/src/beast/sfi/sficomport.h:109

sfi_com_port_reap_child

/opt/src/beast/sfi/sficomport.h:119
void  sfi_com_port_reap_child 
(SfiComPort *port,
 gboolean    kill_child);

sfi_com_port_recv

/opt/src/beast/sfi/sficomport.h:102

sfi_com_port_recv_blocking

/opt/src/beast/sfi/sficomport.h:103

sfi_com_port_ref

/opt/src/beast/sfi/sficomport.h:94

sfi_com_port_send

/opt/src/beast/sfi/sficomport.h:99
void  sfi_com_port_send 
(SfiComPort   *port,
 const GValue *value);

sfi_com_port_send_bulk

/opt/src/beast/sfi/sficomport.h:101
void  sfi_com_port_send_bulk 
(SfiComPort *port,
 SfiRing    *value_ring);

sfi_com_port_set_close_func

/opt/src/beast/sfi/sficomport.h:115
void  sfi_com_port_set_close_func 
(SfiComPort          *port,
 SfiComPortClosedFunc func,
 gpointer             close_data);

sfi_com_port_test_reap_child

/opt/src/beast/sfi/sficomport.h:120

sfi_com_port_unref

/opt/src/beast/sfi/sficomport.h:95