diff options
| author | Alexandra Ellwood <lxs@mit.edu> | 2007-06-12 21:07:16 +0000 |
|---|---|---|
| committer | Alexandra Ellwood <lxs@mit.edu> | 2007-06-12 21:07:16 +0000 |
| commit | 05b0fe74bb6eb10a49333d42f9f1677235863f85 (patch) | |
| tree | bbf3ca5514c49c0ac7d4f70073cb3208607cc05d /src/ccapi/server/ccs_array.h | |
| parent | fd7e3b884d0fa19a4d9b1f1965e656b62beb7351 (diff) | |
| download | krb5-05b0fe74bb6eb10a49333d42f9f1677235863f85.tar.gz krb5-05b0fe74bb6eb10a49333d42f9f1677235863f85.tar.xz krb5-05b0fe74bb6eb10a49333d42f9f1677235863f85.zip | |
Add advisory locking to CCAPI
Added code to trash client crashes. Reorganized server launch to make
it easier to implement platform specific code.
ticket: new
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19573 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/server/ccs_array.h')
| -rw-r--r-- | src/ccapi/server/ccs_array.h | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/src/ccapi/server/ccs_array.h b/src/ccapi/server/ccs_array.h index 6f896cb60..05bcbdf8e 100644 --- a/src/ccapi/server/ccs_array.h +++ b/src/ccapi/server/ccs_array.h @@ -29,21 +29,21 @@ #include "ccs_types.h" -cc_int32 ccs_pipe_array_new (ccs_pipe_array_t *out_array); +cc_int32 ccs_client_array_new (ccs_client_array_t *out_array); -cc_int32 ccs_pipe_array_release (ccs_pipe_array_t io_array); +cc_int32 ccs_client_array_release (ccs_client_array_t io_array); -cc_uint64 ccs_pipe_array_count (ccs_pipe_array_t in_array); +cc_uint64 ccs_client_array_count (ccs_client_array_t in_array); -ccs_pipe_t ccs_pipe_array_object_at_index (ccs_pipe_array_t io_array, - cc_uint64 in_position); +ccs_client_t ccs_client_array_object_at_index (ccs_client_array_t io_array, + cc_uint64 in_position); -cc_int32 ccs_pipe_array_insert (ccs_pipe_array_t io_array, - ccs_pipe_t in_pipe, - cc_uint64 in_position); +cc_int32 ccs_client_array_insert (ccs_client_array_t io_array, + ccs_client_t in_client, + cc_uint64 in_position); -cc_int32 ccs_pipe_array_remove (ccs_pipe_array_t io_array, - cc_uint64 in_position); +cc_int32 ccs_client_array_remove (ccs_client_array_t io_array, + cc_uint64 in_position); #pragma mark - @@ -68,4 +68,24 @@ cc_int32 ccs_lock_array_move (ccs_lock_array_t io_array, cc_uint64 in_new_position, cc_uint64 *out_real_new_position); +#pragma mark - + +cc_int32 ccs_lockref_object_release (void *io_lockref); + +cc_int32 ccs_lockref_array_new (ccs_lockref_array_t *out_array); + +cc_int32 ccs_lockref_array_release (ccs_lockref_array_t io_array); + +cc_uint64 ccs_lockref_array_count (ccs_lockref_array_t in_array); + +ccs_lockref_t ccs_lockref_array_object_at_index (ccs_lockref_array_t io_array, + cc_uint64 in_position); + +cc_int32 ccs_lockref_array_insert (ccs_lockref_array_t io_array, + ccs_lockref_t in_lockref, + cc_uint64 in_position); + +cc_int32 ccs_lockref_array_remove (ccs_lockref_array_t io_array, + cc_uint64 in_position); + #endif /* CCS_ARRAY_H */ |
