GNUnet 0.21.1
GNUNET_OS_CommandHandle Struct Reference

Handle to a command. More...

Collaboration diagram for GNUNET_OS_CommandHandle:
[legend]

Data Fields

struct GNUNET_OS_Processeip
 Process handle. More...
 
struct GNUNET_DISK_PipeHandleopipe
 Handle to the output pipe. More...
 
const struct GNUNET_DISK_FileHandler
 Read-end of output pipe. More...
 
GNUNET_OS_LineProcessor proc
 Function to call on each line of output. More...
 
void * proc_cls
 Closure for proc. More...
 
char buf [1024]
 Buffer for the output. More...
 
struct GNUNET_SCHEDULER_Taskrtask
 Task reading from pipe. More...
 
struct GNUNET_TIME_Absolute timeout
 When to time out. More...
 
size_t off
 Current read offset in buf. More...
 

Detailed Description

Handle to a command.

Definition at line 897 of file os_priority.c.

Field Documentation

◆ eip

struct GNUNET_OS_Process* GNUNET_OS_CommandHandle::eip

Process handle.

Definition at line 902 of file os_priority.c.

Referenced by GNUNET_OS_command_run(), and GNUNET_OS_command_stop().

◆ opipe

struct GNUNET_DISK_PipeHandle* GNUNET_OS_CommandHandle::opipe

Handle to the output pipe.

Definition at line 907 of file os_priority.c.

Referenced by GNUNET_OS_command_run(), and GNUNET_OS_command_stop().

◆ r

const struct GNUNET_DISK_FileHandle* GNUNET_OS_CommandHandle::r

Read-end of output pipe.

Definition at line 912 of file os_priority.c.

Referenced by cmd_read(), and GNUNET_OS_command_run().

◆ proc

GNUNET_OS_LineProcessor GNUNET_OS_CommandHandle::proc

Function to call on each line of output.

Definition at line 917 of file os_priority.c.

Referenced by cmd_read(), GNUNET_OS_command_run(), and GNUNET_OS_command_stop().

◆ proc_cls

void* GNUNET_OS_CommandHandle::proc_cls

Closure for proc.

Definition at line 922 of file os_priority.c.

Referenced by cmd_read(), and GNUNET_OS_command_run().

◆ buf

char GNUNET_OS_CommandHandle::buf[1024]

Buffer for the output.

Definition at line 927 of file os_priority.c.

Referenced by cmd_read().

◆ rtask

struct GNUNET_SCHEDULER_Task* GNUNET_OS_CommandHandle::rtask

Task reading from pipe.

Definition at line 932 of file os_priority.c.

Referenced by cmd_read(), GNUNET_OS_command_run(), and GNUNET_OS_command_stop().

◆ timeout

struct GNUNET_TIME_Absolute GNUNET_OS_CommandHandle::timeout

When to time out.

Definition at line 937 of file os_priority.c.

Referenced by cmd_read(), and GNUNET_OS_command_run().

◆ off

size_t GNUNET_OS_CommandHandle::off

Current read offset in buf.

Definition at line 942 of file os_priority.c.

Referenced by cmd_read().


The documentation for this struct was generated from the following file: