Commit graph

39 commits

Author SHA1 Message Date
Andreas Gustafsson
ac1b36e0d7 pullup:
329.   [func]          omapi_auth_register() now takes a size_t argument for
                        the length of a key's secret data.  Previously
                        OMAPI only stored secrets up to the first NUL byte.
2000-07-12 00:02:14 +00:00
Andreas Gustafsson
0861968cb6 pullup: numerous changes to support OMAPI authentication 2000-07-11 17:23:24 +00:00
David Lawrence
4b60cab173 "delete" function pointer changed to "expunge" to avoid C++ reserved word
conflict, and renamed object_methoddelete to object_methodexpunge for
consistency
2000-06-23 21:28:31 +00:00
David Lawrence
8db07dbeb9 "delete" function pointer changed to "expunge" to avoid C++ reserved word
conflict, and renamed object_methoddelete to object_methodexpunge for
consistency
2000-06-23 21:05:22 +00:00
David Lawrence
1c12b87999 "remove" structure member renamed to "delete" renamed to avoid reserved word
conflict, and renamed object_methodremove to object_methoddelete for
consistency
2000-06-23 20:30:28 +00:00
David Lawrence
17d91fddb3 279. [bug] Private omapi function symbols shared between
two or more files in libomapi.a were not namespace
                        protected using the ISC convention of starting with
                        the library name and two underscores ("omapi__"...)
2000-06-23 20:19:02 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
David Lawrence
49dbdb0186 update_copyrights 2000-06-21 22:05:07 +00:00
Brian Wellington
4fe8755480 Use the new DST API 2000-06-02 18:59:33 +00:00
David Lawrence
44bd41cce3 Megacommit of many files.
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.
2000-06-01 17:33:39 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
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.
    */
2000-05-08 14:38:29 +00:00
David Lawrence
b6fec50e2d Added destroy_action and destroy_arg to OMAPI_OBJECT_PREAMBLE, called
from omapi_object_dereference when an object is destroyed.

Provide OMAPI_EVENT_OBJECTFREED definition to be sent as an event when
an object is destroyed.

Callback parameter to omapi_protocol_listen and omapi_listener_listen
changed type to isc_taskaction_t.

omapi_lib_init takes new taskmgr and socketmgr parameters.
2000-03-18 00:39:36 +00:00
David Lawrence
c998ce2416 new global, omapi_task 2000-03-18 00:35:57 +00:00
David Lawrence
06671f242e specify exit callbacks for listener, added omapi_data_strdup 2000-03-14 03:59:14 +00:00
David Lawrence
c662d88c3e auth support 2000-03-14 03:58:30 +00:00
Bob Halley
a2f3208f7f add DESTDIR support 2000-02-08 21:50:23 +00:00
Bob Halley
823955b9d5 fix install problems 2000-02-04 01:58:37 +00:00
Bob Halley
4dafa5b8ed add missing .h files 2000-02-04 01:41:25 +00:00
Bob Halley
0fffa9dcca update copyright 2000-02-03 23:17:52 +00:00
David Lawrence
19f15c36b9 omapi_protocol_listen/omapi_listener_listen use sockaddr instead of port
no more OMAPI_PROTOCOL_PORT; default port must be define per application.
2000-02-01 15:16:53 +00:00
David Lawrence
6a11a9610d do not need config.h or isc/result.h
do need isc/util.h

mutex and recv_lock no longer needed in connection; wait_lock used instead.

messages_expected no longer needed in connection.

no more omapi_ipv6

connection_send return value changed from void to isc_result_t

connection_wait no longer takes a timeout parameter

new private function, handle_destroy
2000-01-31 15:07:04 +00:00
David Lawrence
450e60d4f1 _OMAPI_OMAPIP_H_ changed to _OMAPI_OMAPI_H_ to match file name.
include isc/region.h and new omapi/types.h

typedefs moved to omapi/types.h

define protocol port to 7912 so as not to conflict with dhcp server;
this clearly needs more thought. the default omapi port will need to be
server specific rather than library specific.

new public functions, omapi_listener_shutdown, omapi_data_getint.

changed API, omapi_string_totext, omapi_value_getint
2000-01-31 15:04:11 +00:00
David Lawrence
5964aac22f omapi_data_asint renamed to omapi_data_getint, old name of omapi_object_getvalue was wrong 2000-01-31 15:00:44 +00:00
David Lawrence
f6826ddc14 typedefs broken out of omapi.h 2000-01-31 14:59:46 +00:00
David Lawrence
8dba294d9d make omapi_message_unregister public 2000-01-24 05:37:19 +00:00
David Lawrence
016440cdc6 no longer define ISC_MEM_DEBUG by default 2000-01-24 05:36:37 +00:00
David Lawrence
e0f30c15b6 checkpoint 2000-01-22 00:18:05 +00:00
David Lawrence
4c9113533d checkpoint 2000-01-17 20:06:37 +00:00
David Lawrence
eb421ff1a1 checkpoint 2000-01-17 18:02:11 +00:00
David Lawrence
45d019f745 checkpoint 2000-01-14 23:10:04 +00:00
David Lawrence
6cdff83aae checkpoint 2000-01-13 06:13:26 +00:00
David Lawrence
0b87ef9d0b checkpoint 2000-01-11 01:49:24 +00:00
David Lawrence
904f1ab394 checkpoint 2000-01-06 23:56:51 +00:00
David Lawrence
3eab41102f checkpoint 2000-01-06 03:36:32 +00:00
David Lawrence
d49df8f0d3 renamed from omapip_p.h 2000-01-04 20:19:11 +00:00
David Lawrence
686320ef6e checkpoint 2000-01-04 20:04:42 +00:00
David Lawrence
0ae0a1f038 checkpoint conversion to ISC (doc/dev/coding.html) style.
* no spaces around " -> " in indirect postfix expression.
  * no space between function name and open parenthesis.
  * no space between array name and open bracket.
  * use NULL not 0 for pointers.
  * explicitly compare pointers to NULL.
  * explicitly compare integers to 0.
  * Do not cast NULL.
  * return type of function declaration on line by itself.
  * open brace of function definition follows close parenthesis if parameters
    all fit on one line.
  * comment-only lines start with /* on line by itself, and end with */
    on line by itself.
  * variable names in structures separated from their types in a column.
  * name the parameters in function prototypes.
  * ifndef multiple header file inclusion.

and other BIND9 conventions not in coding.html:

  * private structures defined in relevant source module, not private header.
  * RCS /* $Id: $ */ comments.
  * Principal Author (Ted Lemon) comments.
  * Updated ISC copyrights.
  * Parenthesize value of return().
  * Parenthesize argument of sizeof().
  * "unsigned int foo" not "unsigned foo".
  * ISC_LANG_(BEGIN|END)DECLS in header files.
  * header files included directly by source/header file that needs them.
  * ... and others I am probably forgetting.

and conversion to some libisc.a modules:

  * use isc/int.h for isc_uintXX_t types, not u_intXX_t.
  * use isc/assertions.h for REQUIRE() and INSIST().
  * use isc/error.h for UNEXPECTED_ERROR.
  * use isc/boolean.h for isc_boolean_t flags instead of int flags.
  * use isc/net.h for networking types.
  * use isc/netdb.h for gethostby*.

STILL TO COME ...

  * more isc_boolean_t.
  * isc/time.h to replace struct timeval.
  * isc/socket.h to replace socket/listen/select/etc.
  * isc/mem.h to replace malloc/free.
  * namespace overhaul & omapi/compatibility.h.

Please collect all your belongings but stand clear of the doors until this
train has come to a complete stop.
1999-11-02 04:01:34 +00:00
David Lawrence
80d1f35fc3 boilerplate 1999-11-01 02:32:57 +00:00
David Lawrence
bdc1edb6ea initial copy from the DHCP source pool 1999-10-27 23:55:07 +00:00