paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Functions | Variables
write.c File Reference

Paraslash's standalone wav/raw player. More...

#include <regex.h>
#include <sys/types.h>
#include <lopsub.h>
#include "write_cmd.lsg.h"
#include "write.lsg.h"
#include "para.h"
#include "string.h"
#include "list.h"
#include "sched.h"
#include "stdin.h"
#include "buffer_tree.h"
#include "write.h"
#include "fd.h"
#include "error.h"
#include "version.h"
#include "check_wav.h"

Macros

#define CMD_PTR   (lls_cmd(0, write_suite))
 
#define OPT_RESULT(_name, _lpr)    (lls_opt_result(LSG_WRITE_PARA_WRITE_OPT_ ## _name, _lpr))
 
#define OPT_GIVEN(_name, _lpr)   (lls_opt_given(OPT_RESULT(_name, _lpr)))
 
#define OPT_UINT32_VAL(_name, _lpr)   (lls_uint32_val(0, OPT_RESULT(_name, _lpr)))
 

Functions

int main (int argc, char *argv[])
 Para_write's main function. More...
 

Variables

 DEFINE_PARA_ERRLIST
 Array of error strings. More...
 
__printf_2_3 void(* para_log )(int, const char *,...) = stderr_log
 The log function of para_gui, always set to curses_log(). More...
 

Detailed Description

Paraslash's standalone wav/raw player.

Macro Definition Documentation

◆ CMD_PTR

#define CMD_PTR   (lls_cmd(0, write_suite))

◆ OPT_RESULT

#define OPT_RESULT (   _name,
  _lpr 
)     (lls_opt_result(LSG_WRITE_PARA_WRITE_OPT_ ## _name, _lpr))

◆ OPT_GIVEN

#define OPT_GIVEN (   _name,
  _lpr 
)    (lls_opt_given(OPT_RESULT(_name, _lpr)))

◆ OPT_UINT32_VAL

#define OPT_UINT32_VAL (   _name,
  _lpr 
)    (lls_uint32_val(0, OPT_RESULT(_name, _lpr)))

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Para_write's main function.

Parameters
argcThe usual argument counter.
argvThe usual argument vector.

It sets up and starts the tasks and the buffer tree nodes determined by command line options.

Returns
EXIT_SUCCESS or EXIT_FAILURE

Variable Documentation

◆ DEFINE_PARA_ERRLIST

DEFINE_PARA_ERRLIST

Array of error strings.

◆ para_log

__printf_2_3 void(* para_log) (int, const char *,...) = stderr_log

The log function of para_gui, always set to curses_log().