SolarCapture C Bindings
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Functions
attr.h File Reference

sc_attr: Control optional behaviours and tunables. More...

Go to the source code of this file.

Functions

int sc_attr_alloc (struct sc_attr **attr_out)
 Allocate an attribute object. More...
 
void sc_attr_free (struct sc_attr *attr)
 Free an attribute object. More...
 
void sc_attr_reset (struct sc_attr *attr)
 Return attributes to their default values. More...
 
int sc_attr_set_int (struct sc_attr *attr, const char *name, int64_t val)
 Set an attribute to an integer value. More...
 
int sc_attr_set_str (struct sc_attr *attr, const char *name, const char *s)
 Set an attribute to a string value. More...
 
int sc_attr_set_from_str (struct sc_attr *attr, const char *name, const char *val)
 Set an attribute to a string value. More...
 
struct sc_attrsc_attr_dup (const struct sc_attr *attr)
 Duplicate an attribute object. More...
 
int sc_attr_doc (const char *attr_name_opt, const char ***docs_out, int *docs_len_out)
 Returns documentation for attributes. Used by solar_capture_doc. More...
 

Detailed Description

sc_attr: Control optional behaviours and tunables.