nmsg  0.9.0
Variables
linkpair.c File Reference

base "linkpair" message type. More...

Go to the source code of this file.

Variables

struct nmsg_msgmod_field linkpair_fields []
 
struct nmsg_msgmod_plugin nmsg_msgmod_ctx
 

Detailed Description

base "linkpair" message type.

This message type is meant to carry information about links between webpages.

linkpair message fields.

Name Type Required Repeated

Description

type enum Linktype yes no

Type of link pair.

src string yes no

URI of source page.

dst string yes no

URI of destination page.

headers multi-line string no no

HTTP response headers of destination page.

enum Linktype values.

Name Value

Description

anchor 0

link created by an <A HREF> tag

redirect 1

link created by an HTTP redirect

Definition in file linkpair.c.

Variable Documentation

struct nmsg_msgmod_field linkpair_fields[]
Initial value:
= {
{
.name = "type",
},
{
.name = "src",
},
{
.name = "dst",
},
{ .type = nmsg_msgmod_ft_mlstring, .name = "headers" },
NMSG_MSGMOD_FIELD_END
}
Protobuf enum.
Definition: msgmod.h:75
Protobuf byte array.
Definition: msgmod.h:84
Protobuf byte array.
Definition: msgmod.h:90
#define NMSG_MSGMOD_FIELD_REQUIRED
field is required
Definition: msgmod.h:124

Definition at line 25 of file linkpair.c.

struct nmsg_msgmod_plugin nmsg_msgmod_ctx
Initial value:
= {
NMSG_MSGMOD_REQUIRED_INIT,
.vendor = NMSG_VENDOR_BASE,
.msgtype = { NMSG_VENDOR_BASE_LINKPAIR_ID, NMSG_VENDOR_BASE_LINKPAIR_NAME },
.pbdescr = &nmsg__base__linkpair__descriptor,
.fields = linkpair_fields
}

Definition at line 47 of file linkpair.c.