paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Functions
stdin.c File Reference

Functions that deal with reading from stdin. More...

#include <regex.h>
#include "para.h"
#include "list.h"
#include "sched.h"
#include "fd.h"
#include "error.h"
#include "stdin.h"
#include "buffer_tree.h"
#include "string.h"

Functions

void stdin_task_register (struct stdin_task *sit, struct sched *s)
 Register a stdin task structure. More...
 

Detailed Description

Functions that deal with reading from stdin.

Function Documentation

◆ stdin_task_register()

void stdin_task_register ( struct stdin_task sit,
struct sched s 
)

Register a stdin task structure.

Parameters
sitThe stdin task structure to register.
sThe task will be added to this scheduler's task list.

This allocates a buffer tree pool for I/O, sets up sit and registers a task with sit as context pointer.