Bvopt — Change the view field options
#include <ubf.h>
int Bvopt(char *cname, int option, char *view);
Link with -lubf -lnstd -lm -lpthread
Function is used to change the field options for loaded view. This affects only the runtime session and after the program reboot the flags are read from object files. Flags that can be changed in the view are related to data copy to/from UBF buffer. The field name is specified into cname, the view name is specified in the view field. Function is thread safe (i.e. to threads can call the Bvopt concurrently, but last one will take an effect).
The option field can take following values (constants from ubf.h):
On success, Bvftos() return zero; on error, -1 is returned, with Berror set to indicate the error.
Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
BEINVAL Invalid value passed to function, parameters are NULL or invalid option.
BNOCNAME Invalid cname specified (field not found).
BBADVIEW View is not found, object file is defective or system error.