Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
plain.cc File Reference

Module for decoding a text/plain object into a dw widget. More...

#include "msg.h"
#include "prefs.h"
#include "cache.h"
#include "bw.h"
#include "web.hh"
#include "misc.h"
#include "styleengine.hh"
#include "uicmd.hh"
#include "dw/core.hh"
#include "dw/textblock.hh"
Include dependency graph for plain.cc:

Go to the source code of this file.

Macros

#define DW2TB(dw)   ((Textblock*)dw)
 

Enumerations

enum  { ST_SeekingEol , ST_Eol , ST_Eof }
 

Functions

void * a_Plain_text (const char *type, void *P, CA_Callback_t *Call, void **Data)
 Set callback function and callback data for "text/" MIME major-type.
 
static void Plain_callback (int Op, CacheClient_t *Client)
 This function is a cache client.
 
void a_Plain_free (void *data)
 

Detailed Description

Module for decoding a text/plain object into a dw widget.

Definition in file plain.cc.

Macro Definition Documentation

◆ DW2TB

#define DW2TB (   dw)    ((Textblock*)dw)

Definition at line 32 of file plain.cc.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ST_SeekingEol 
ST_Eol 
ST_Eof 

Definition at line 65 of file plain.cc.

Function Documentation

◆ a_Plain_free()

void a_Plain_free ( void *  data)

Definition at line 216 of file plain.cc.

References _MSG.

◆ a_Plain_text()

void * a_Plain_text ( const char *  type,
void *  P,
CA_Callback_t Call,
void **  Data 
)

Set callback function and callback data for "text/" MIME major-type.

Definition at line 205 of file plain.cc.

References _DilloWeb::bw, and Plain_callback().

Referenced by a_Mime_init().

◆ Plain_callback()

static void Plain_callback ( int  Op,
CacheClient_t Client 
)
static

This function is a cache client.

Definition at line 225 of file plain.cc.

References a_Bw_close_client(), CacheClient::Buf, CacheClient::BufSize, CacheClient::CbData, and CacheClient::Key.

Referenced by a_Plain_text().