dst_lib_init to be called before any of the dst functions are used. The
missing calls for dst_lib_init() and dst_lib_destroy() have been added to
the application here, rather than to omapi_lib_init(), to be consistent with
the rest of our applications.
Not sure that this warrants a CHANGES entry since it is just a test program.
Then again, it is probably worth mentioning that programs using OMAPI will
need to ensure they call dst_lib_init() before they call
omapi_listener_listen(). Unfortunately omapi_lib_init() can't require
dst having been initialized as part of its contract because it can't
figure out whether that's true or not.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const. Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.
Several unused functions removed from dispatch_tcp_test.c (left over
from when it was copied from dispatch_test.c).
Minor other ISC style cleanups.
Cleanup of redundant/useless header file inclusion.
ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
/*
* This is a comment.
*/
the server's error response mechanism.
Test notify-object.
omapi_value_asint -> omapi_value_getint
omapi_string_totext API changed.
Process the additional text message in a "status" signal.
Shutdown the server side at a trigger value (hardwired at 32, or four
updates from the client.)
Test omapi_protocol_connect without asserting an error on failure.
Wait the server until shutdown so memory usage can be examined.
use omapi_protocol_disconnect instead of omapi_connection_disconnect to
simplify things a little.
free the client connection manager.
initialize master_data's refcnt to 1 so the server does not try to free it.