ELinks 0.16.1.1
load.c File Reference
#include "scripting/python/pythoninc.h"
#include "elinks.h"
#include "cache/cache.h"
#include "intl/libintl.h"
#include "network/connection.h"
#include "network/state.h"
#include "protocol/uri.h"
#include "scripting/python/core.h"
#include "scripting/python/load.h"
#include "session/download.h"
#include "session/session.h"
#include "session/task.h"
#include "util/error.h"
#include "util/memory.h"
Include dependency graph for load.c:

Data Structures

struct  python_load_uri_callback_hop

Functions

static void invoke_load_uri_callback (struct download *download, void *data)
PyObject * python_load (PyObject *self, PyObject *args)

Variables

char python_load_doc []

Function Documentation

◆ invoke_load_uri_callback()

void invoke_load_uri_callback ( struct download * download,
void * data )
static

◆ python_load()

PyObject * python_load ( PyObject * self,
PyObject * args )

Variable Documentation

◆ python_load_doc

char python_load_doc[]
Initial value:
=
PYTHON_DOCSTRING("load(url, callback) -> None\n\
\n\
Load a document into the ELinks cache and pass its contents to a\n\
callable object.\n\
\n\
Arguments:\n\
\n\
url -- A string containing the URL to load.\n\
callback -- A callable object to be called after the document has\n\
been loaded. It will be called with two arguments: the first\n\
will be a string representing the document's header, or None\n\
if it has no header; the second will be a string representing\n\
the document's body, or None if it has no body.\n")
#define PYTHON_DOCSTRING(str)
Definition core.h:46