This is the main file of xhttp_rpc module which contains all the functions related to http processing, as well as the module interface.
More...
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include "../../ver.h"
#include "../../trim.h"
#include "../../sr_module.h"
#include "../../nonsip_hooks.h"
#include "../../modules/xhttp/api.h"
#include "xhttp_rpc.h"
#include "xhttp_rpc_fnc.h"
Go to the source code of this file.
Functions
- static int init_xhttp_rpc_reply (rpc_ctx_t *ctx)
- Initialize xhttp_rpc reply data structure.
- static int print_value (rpc_ctx_t *ctx, char fmt, va_list *ap, str *id)
- Converts the variables provided in parameter ap according to formatting string provided in parameter fmt into HTML format.
- static int rpc_add (rpc_ctx_t *ctx, char *fmt,...)
- Implementation of rpc_add function required by the management API.
-
static rpc_capabilities_t rpc_capabilities (rpc_ctx_t *ctx)
- Returns the RPC capabilities supported by the xmlrpc driver.
- static void rpc_delayed_ctx_close (struct rpc_delayed_ctx *dctx)
- Closes a "delayed reply" context and sends the reply.
- static struct rpc_delayed_ctx * rpc_delayed_ctx_new (rpc_ctx_t *ctx)
- Returns a new "delayed reply" context.
- static void rpc_fault (rpc_ctx_t *ctx, int code, char *fmt,...)
- Implementation of rpc_fault function required by the management API.
- static int rpc_printf (rpc_ctx_t *ctx, char *fmt,...)
- Implementation of rpc_printf function required by the management API.
- static int rpc_scan (rpc_ctx_t *ctx, char *fmt,...)
- Implementation of rpc->scan function required by the management API.
- static int rpc_send (rpc_ctx_t *ctx)
- Implementation of rpc_send function required by the management API.
-
static int rpc_struct_add (struct rpc_data_struct *rpc_s, char *fmt,...)
- Adds a new member to structure.
-
static int rpc_struct_printf (void *s, char *member_name, char *fmt,...)
- Create a new member from formatting string and add it to a structure.
Variables
- static rpc_ctx_t ctx
- The context of the xhttp_rpc request being processed.
-
struct module_exports exports
- module exports
-
static rpc_t func_param
- Pointers to the functions that implement the RPC interface of xhttp_rpc module.
Detailed Description
Definition in file xhttp_rpc.c.