paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Functions | Variables
afh.c File Reference

Paraslash's standalone audio format handler tool. More...

#include <regex.h>
#include <lopsub.h>
#include "afh.lsg.h"
#include "para.h"
#include "string.h"
#include "fd.h"
#include "afh.h"
#include "error.h"
#include "version.h"

Macros

#define CMD_PTR   (lls_cmd(0, afh_suite))
 
#define OPT_RESULT(_name)   (lls_opt_result(LSG_AFH_PARA_AFH_OPT_ ## _name, lpr))
 
#define OPT_GIVEN(_name)   (lls_opt_given(OPT_RESULT(_name)))
 
#define OPT_STRING_VAL(_name)   (lls_string_val(0, OPT_RESULT(_name)))
 
#define OPT_UINT32_VAL(_name)   (lls_uint32_val(0, OPT_RESULT(_name)))
 

Functions

int main (int argc, char **argv)
 The main function of para_afh. More...
 

Variables

 DEFINE_PARA_ERRLIST
 Array of error strings. More...
 
__printf_2_3 void(* para_log )(int, const char *,...) = stderr_log
 

Detailed Description

Paraslash's standalone audio format handler tool.

Macro Definition Documentation

◆ CMD_PTR

#define CMD_PTR   (lls_cmd(0, afh_suite))

◆ OPT_RESULT

#define OPT_RESULT (   _name)    (lls_opt_result(LSG_AFH_PARA_AFH_OPT_ ## _name, lpr))

◆ OPT_GIVEN

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

◆ OPT_STRING_VAL

#define OPT_STRING_VAL (   _name)    (lls_string_val(0, OPT_RESULT(_name)))

◆ OPT_UINT32_VAL

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

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

The main function of para_afh.

Parameters
argcUsual argument count.
argvUsual argument vector.
Returns
EXIT_FAILURE or EXIT_SUCCESS.

References CMD_PTR, and lls().

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