Dillo v3.1.1-99-gf3103cc4
|
#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"
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 |
#define MSG | ( | ... | ) | fprintf(stderr, "[vsource dpi]: " __VA_ARGS__) |
int main | ( | void | ) |
Definition at line 184 of file vsource.c.
References _MSG, a_Dpip_build_cmd(), a_Dpip_check_auth(), a_Dpip_dsh_close(), a_Dpip_dsh_free(), a_Dpip_dsh_new(), a_Dpip_dsh_read_token(), a_Dpip_dsh_write_str(), a_Dpip_get_attr(), dFree(), dStrerror, MSG, send_html_text(), and sh.
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.
void send_html_text | ( | Dsh * | sh, |
const char * | url, | ||
int | data_size | ||
) |
Definition at line 105 of file vsource.c.
References a_Dpip_dsh_printf, a_Dpip_dsh_read_token2(), a_Dpip_dsh_write(), a_Dpip_dsh_write_str(), dFree(), DOCTYPE, dStrnAsciiCasecmp(), and sh.
Referenced by main().
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.
void send_plain_text | ( | Dsh * | sh, |
int | data_size | ||
) |
Definition at line 48 of file vsource.c.
References _MSG, a_Dpip_dsh_read_token2(), a_Dpip_dsh_write(), a_Dpip_dsh_write_str(), dFree(), and sh.
const char* DOCTYPE |
Definition at line 33 of file vsource.c.
Referenced by send_html_text().