]> git.evergreen-ils.org Git - OpenSRF.git/commit - src/libopensrf/osrf_application.c
Miscellaneous minor changes. mostly for clarity:
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 8 Mar 2010 03:26:03 +0000 (03:26 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 8 Mar 2010 03:26:03 +0000 (03:26 +0000)
commit89a3961658e651ecc040c78b130045c2325e90b3
treebc2d7cfbe8406deb293b611fb64deadd64b1b822
parent525921709de171b847e154ecbbc05addfc6040e6
Miscellaneous minor changes. mostly for clarity:

1. Changed return type of _osrfAppRegisterSysMethods from int to void,
since we never looked at the return code anyway.

2. In osrfAppRegisterApplication(): 0pen the shared object before
allocating an osrfApplication, so that we don't have to free the
osrfApplication if the open fails.

3. In osrfAppRegisterExtendedMethod(): when creating an atomic method,
pass the userData pointer to _osrfAppBuildMethod() instead of
installing it on a separate line.

4. In _osrfAppBuildMethod(): for an atomic method, build the method
name correctly the first time, instead of building it incorrectly
and later replacing it.

5. In osrfAppRunMethod(): rearranged things a bit for clarity.
Simplified the declaration and dereferencing of the meth pointer.

6. In osrfAppIntrospect(): Introduced an early return in order to
reduce the level of indentation of the rest of the function.  Moved
some declarations closer to their first uses.

7. In osrfAppIntrospectAll(): moved the declaration of resp into the
loop where it is used.

8. Finished adding doxygen-style comments to document the functions.
Touched up the white space here and there.

M    src/libopensrf/osrf_application.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1935 9efc2488-bf62-4759-914b-345cdb29e865
src/libopensrf/osrf_application.c