SFI Interface Reference

/opt/src/beast/sfi/sfistore.h

SYNOPSIS

struct  SfiWStore;
struct  _SfiRStore;
   
void GTokenType typedef gboolean()  SfiRStoreQuickScan  (rstore, data);
void  sfi_rstore_destroy  (rstore);
GTokenType  sfi_rstore_ensure_bin_offset  (rstore);
gboolean  sfi_rstore_eof  (rstore);
void  sfi_rstore_error  (rstore, format, ...);
guint64  sfi_rstore_get_bin_offset  (rstore);
void  sfi_rstore_input_fd  (rstore, fd, fname);
void  sfi_rstore_input_text  (rstore, text, text_name);
SfiRStore*  sfi_rstore_new  ();
SfiRStore*  sfi_rstore_new_open  (fname);
guint  sfi_rstore_parse_all  (rstore, context_data, try_statement, user_data);
GTokenType  sfi_rstore_parse_binary  (rstore, offset_p, length_p);
GTokenType  sfi_rstore_parse_param  (rstore, value, pspec);
GTokenType  sfi_rstore_parse_until  (rstore, closing_token, context_data, try_statement, user_data);
GTokenType  sfi_rstore_parse_zbinary  (rstore, offset_p, length_p);
void  sfi_rstore_quick_scan  (rstore, identifier, qcheck, data);
void void  sfi_rstore_unexp_token  (rstore, expected_token);
void  sfi_rstore_warn  (rstore, format, ...);
void GTokenType  sfi_rstore_warn_skip  (rstore, format, ...);
void  sfi_wstore_break  (wstore);
void  sfi_wstore_destroy  (wstore);
gint  sfi_wstore_flush_fd  (wstore, fd);
SfiWStore*  sfi_wstore_new  ();
const gchar*  sfi_wstore_peek_text  (wstore, length);
void  sfi_wstore_pop_level  (wstore);
void  sfi_wstore_printf  (wstore, format, ...);
void  sfi_wstore_push_level  (wstore);
void  sfi_wstore_put_binary  (wstore, reader, data, destroy);
void  sfi_wstore_put_param  (wstore, value, pspec);
void  sfi_wstore_put_value  (wstore, value);
void  sfi_wstore_putc  (wstore, character);
void  sfi_wstore_putd  (wstore, vdouble);
void void  sfi_wstore_putf  (wstore, vfloat);
void  sfi_wstore_puts  (wstore, string);

DESCRIPTION

SfiWStore

/opt/src/beast/sfi/sfistore.h:31
struct SfiWStore
{
  GString *text;
  guint    indent;
  SfiRing *bblocks;
  guint    needs_break;
  guint    flushed;
  gchar    comment_start;
};

_SfiRStore

/opt/src/beast/sfi/sfistore.h:50
struct _SfiRStore
{
  GScanner *scanner;
  gchar    *fname;
  gint      close_fd;
  gpointer  parser_this;
  SfiNum    bin_offset;
};

SfiRStoreQuickScan

/opt/src/beast/sfi/sfistore.h:134

sfi_rstore_destroy

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

sfi_rstore_ensure_bin_offset

/opt/src/beast/sfi/sfistore.h:105

sfi_rstore_eof

/opt/src/beast/sfi/sfistore.h:101

sfi_rstore_error

/opt/src/beast/sfi/sfistore.h:124
void  sfi_rstore_error 
(SfiRStore   *rstore,
 const gchar *format,
 ...);

sfi_rstore_get_bin_offset

/opt/src/beast/sfi/sfistore.h:106

sfi_rstore_input_fd

/opt/src/beast/sfi/sfistore.h:97
void  sfi_rstore_input_fd 
(SfiRStore   *rstore,
 gint         fd,
 const gchar *fname);

sfi_rstore_input_text

/opt/src/beast/sfi/sfistore.h:100
void  sfi_rstore_input_text 
(SfiRStore   *rstore,
 const gchar *text,
 const gchar *text_name);

sfi_rstore_new

/opt/src/beast/sfi/sfistore.h:92

sfi_rstore_new_open

/opt/src/beast/sfi/sfistore.h:93

sfi_rstore_parse_all

/opt/src/beast/sfi/sfistore.h:121
guint  sfi_rstore_parse_all 
(SfiRStore     *rstore,
 gpointer       context_data,
 SfiStoreParser try_statement,
 gpointer       user_data);

sfi_rstore_parse_binary

/opt/src/beast/sfi/sfistore.h:109
GTokenType  sfi_rstore_parse_binary 
(SfiRStore *rstore,
 SfiNum    *offset_p,
 SfiNum    *length_p);

sfi_rstore_parse_param

/opt/src/beast/sfi/sfistore.h:104
GTokenType  sfi_rstore_parse_param 
(SfiRStore  *rstore,
 GValue     *value,
 GParamSpec *pspec);

sfi_rstore_parse_until

/opt/src/beast/sfi/sfistore.h:117
GTokenType  sfi_rstore_parse_until 
(SfiRStore     *rstore,
 GTokenType     closing_token,
 gpointer       context_data,
 SfiStoreParser try_statement,
 gpointer       user_data);

sfi_rstore_parse_zbinary

/opt/src/beast/sfi/sfistore.h:112
GTokenType  sfi_rstore_parse_zbinary 
(SfiRStore *rstore,
 SfiNum    *offset_p,
 SfiNum    *length_p);

sfi_rstore_quick_scan

/opt/src/beast/sfi/sfistore.h:138
void  sfi_rstore_quick_scan 
(SfiRStore         *rstore,
 const gchar       *identifier,
 SfiRStoreQuickScan qcheck,
 gpointer           data);

sfi_rstore_unexp_token

/opt/src/beast/sfi/sfistore.h:126
void void  sfi_rstore_unexp_token 
(SfiRStore *rstore,
 GTokenType expected_token);

sfi_rstore_warn

/opt/src/beast/sfi/sfistore.h:129
void  sfi_rstore_warn 
(SfiRStore   *rstore,
 const gchar *format,
 ...);

sfi_rstore_warn_skip

/opt/src/beast/sfi/sfistore.h:132
void GTokenType  sfi_rstore_warn_skip 
(SfiRStore   *rstore,
 const gchar *format,
 ...);

sfi_wstore_break

/opt/src/beast/sfi/sfistore.h:64

sfi_wstore_destroy

/opt/src/beast/sfi/sfistore.h:61

sfi_wstore_flush_fd

/opt/src/beast/sfi/sfistore.h:86
gint  sfi_wstore_flush_fd 
(SfiWStore *wstore,
 gint       fd);

sfi_wstore_new

/opt/src/beast/sfi/sfistore.h:60

sfi_wstore_peek_text

/opt/src/beast/sfi/sfistore.h:88
const gchar*  sfi_wstore_peek_text 
(SfiWStore *wstore,
 guint     *length);

sfi_wstore_pop_level

/opt/src/beast/sfi/sfistore.h:63

sfi_wstore_printf

/opt/src/beast/sfi/sfistore.h:71
void  sfi_wstore_printf 
(SfiWStore   *wstore,
 const gchar *format,
 ...);

sfi_wstore_push_level

/opt/src/beast/sfi/sfistore.h:62

sfi_wstore_put_binary

/opt/src/beast/sfi/sfistore.h:84
void  sfi_wstore_put_binary 
(SfiWStore      *wstore,
 SfiStoreReadBin reader,
 gpointer        data,
 GDestroyNotify  destroy);

sfi_wstore_put_param

/opt/src/beast/sfi/sfistore.h:80
void  sfi_wstore_put_param 
(SfiWStore    *wstore,
 const GValue *value,
 GParamSpec   *pspec);

sfi_wstore_put_value

/opt/src/beast/sfi/sfistore.h:77
void  sfi_wstore_put_value 
(SfiWStore    *wstore,
 const GValue *value);

sfi_wstore_putc

/opt/src/beast/sfi/sfistore.h:68
void  sfi_wstore_putc 
(SfiWStore *wstore,
 gchar      character);

sfi_wstore_putd

/opt/src/beast/sfi/sfistore.h:75
void  sfi_wstore_putd 
(SfiWStore *wstore,
 gdouble    vdouble);

sfi_wstore_putf

/opt/src/beast/sfi/sfistore.h:73
void void  sfi_wstore_putf 
(SfiWStore *wstore,
 gfloat     vfloat);

sfi_wstore_puts

/opt/src/beast/sfi/sfistore.h:66
void  sfi_wstore_puts 
(SfiWStore   *wstore,
 const gchar *string);