8 #ifndef __SOLAR_CAPTURE_NODE_H__
9 #define __SOLAR_CAPTURE_NODE_H__
41 struct sc_thread* thread,
43 const struct sc_arg* args,
int n_args);
68 struct sc_thread* thread,
69 const char* factory_name,
71 const struct sc_arg* args,
int n_args);
97 struct sc_node* to_node,
const char* to_name_opt);
158 struct sc_session* session,
159 const char* factory_name,
160 const char* lib_name);
178 const char* field_name,
const char* field_val);
197 const char* field_name, int64_t field_val);
void sc_node_add_info_str(struct sc_node *node, const char *field_name, const char *field_val)
Export information to solar_capture_monitor.
void sc_node_add_info_int(struct sc_node *node, const char *field_name, int64_t field_val)
Export information to solar_capture_monitor.
Struct to hold information about how to create an instance of this node.
Definition: ext_node.h:69
struct sc_thread * sc_node_get_thread(const struct sc_node *node)
Return the thread associated with a node.
int sc_node_alloc(struct sc_node **node_out, const struct sc_attr *attr, struct sc_thread *thread, const struct sc_node_factory *factory, const struct sc_arg *args, int n_args)
Allocate a packet processing node.
Description of a node.
Definition: ext_node.h:17
int sc_node_alloc_named(struct sc_node **node_out, const struct sc_attr *attr, struct sc_thread *thread, const char *factory_name, const char *lib_name, const struct sc_arg *args, int n_args)
Allocate a packet processing node by name.
Representation of an argument. Used by node init functions.
Definition: args.h:27
int sc_node_add_link(struct sc_node *from_node, const char *link_name, struct sc_node *to_node, const char *to_name_opt)
Add a link from one node to another.
int sc_node_factory_lookup(const struct sc_node_factory **factory_out, struct sc_session *session, const char *factory_name, const char *lib_name)
Find a node factory.