@@ -7,11 +7,11 @@ .sp .BI "int lc_register_callback(const char *" var ", char " opt ", lc_var_type_t " type ", int (*callback)(const char *, const char *, const char *, const char *, lc_flags_t, void *), void *" extra); .SH DESCRIPTION The -.B lc_register_callback +.BR lc_register_callback (3) function registers a function to be called when .IR var is encounted in a configuration file, command line, or environment variable. The parameters are as follows: .TP @@ -68,11 +68,11 @@ This may be .B NULL if the .IR var parameter to -.BI lc_register_callback (3) +.BR lc_register_callback (3) was .B NULL too. .RE .TP @@ -84,11 +84,11 @@ This may be .B NULL if the .IR var parameter to -.BI lc_register_callback (3) +.BR lc_register_callback (3) was .B NULL too. .RE .TP @@ -110,11 +110,11 @@ This may be .B NULL if no value was specified. Values are required if the .IR type parameter to -.BI lc_register_callback (3) +.BR lc_register_callback (3) was not specified as one of LC_VAR_NONE, LC_VAR_SECTION, LC_VAR_SECTIONSTART, or LC_VAR_SECTIONEND. .RE .TP .I "lc_flags_t flags" .RS @@ -134,11 +134,11 @@ The .I extra parameter is just a copy of the .IR extra parameter passed to -.BI lc_register_callback (3) +.BR lc_register_callback (3) when the callback was registered. .RE The .IR callback @@ -150,11 +150,11 @@ LC_CBRET_OKAY Returning LC_CBRET_OKAY from a callback indicates that all went well and further processing may continue. .TP LC_CBRET_ERROR Returnning LC_CBRET_ERROR from a callback indicates that the command failed for some reason, the error will be passed back down the chain back to the -.BI lc_process (3) +.BR lc_process (3) call that began processing the configuration data. If LC_CBRET_ERROR is returned from a callback that begins a section, the entire section is ignored. "RETURN VALUE" On success 0 is returned, otherwise -1 is returned.