Dillo v3.1.1-99-gf3103cc4
Loading...
Searching...
No Matches
vsource.c File Reference
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "../dpip/dpip.h"
#include "dpiutil.h"
Include dependency graph for vsource.c:

Go to the source code of this file.

Macros

#define _MSG(...)
 
#define MSG(...)   fprintf(stderr, "[vsource dpi]: " __VA_ARGS__)
 

Functions

void send_dpip_tag (Dsh *sh, char *dpip_tag)
 
void send_plain_text (Dsh *sh, int data_size)
 
void send_numbered_text (Dsh *sh, int data_size)
 
void send_html_text (Dsh *sh, const char *url, int data_size)
 
int main (void)
 

Variables

const char * DOCTYPE
 

Macro Definition Documentation

◆ _MSG

#define _MSG (   ...)

Definition at line 28 of file vsource.c.

◆ MSG

#define MSG (   ...)    fprintf(stderr, "[vsource dpi]: " __VA_ARGS__)

Definition at line 29 of file vsource.c.

Function Documentation

◆ main()

◆ send_dpip_tag()

void send_dpip_tag ( Dsh sh,
char *  dpip_tag 
)

Definition at line 37 of file vsource.c.

References a_Dpip_dsh_write_str(), and sh.

◆ send_html_text()

void send_html_text ( Dsh sh,
const char *  url,
int  data_size 
)

◆ send_numbered_text()

void send_numbered_text ( Dsh sh,
int  data_size 
)

Definition at line 69 of file vsource.c.

References a_Dpip_dsh_read_token2(), a_Dpip_dsh_write(), a_Dpip_dsh_write_str(), dFree(), and sh.

◆ send_plain_text()

void send_plain_text ( Dsh sh,
int  data_size 
)

Variable Documentation

◆ DOCTYPE

const char* DOCTYPE
Initial value:
=
"<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>"

Definition at line 33 of file vsource.c.

Referenced by send_html_text().