diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2007-05-31 21:06:54 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2007-05-31 21:06:54 +0000 |
commit | d45eeb7f708d5be2e9fbdbc54a04655776074f6c (patch) | |
tree | 5ab3d7e31f285ac4d6900d3abc647cbb53a05f8d /src/ccapi/common/cci_stream.h | |
parent | 66bd29f512b9bdd5e808d645118862112973d2d6 (diff) | |
download | krb5-d45eeb7f708d5be2e9fbdbc54a04655776074f6c.tar.gz krb5-d45eeb7f708d5be2e9fbdbc54a04655776074f6c.tar.xz krb5-d45eeb7f708d5be2e9fbdbc54a04655776074f6c.zip |
Move CCAPI sources to krb5 repository
ticket: new
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19564 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/common/cci_stream.h')
-rw-r--r-- | src/ccapi/common/cci_stream.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/ccapi/common/cci_stream.h b/src/ccapi/common/cci_stream.h new file mode 100644 index 0000000000..9c37361cda --- /dev/null +++ b/src/ccapi/common/cci_stream.h @@ -0,0 +1,77 @@ +/* + * $Header$ + * + * Copyright 2006 Massachusetts Institute of Technology. + * All Rights Reserved. + * + * Export of this software from the United States of America may + * require a specific license from the United States Government. + * It is the responsibility of any person or organization contemplating + * export to obtain such a license before exporting. + * + * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and + * distribute this software and its documentation for any purpose and + * without fee is hereby granted, provided that the above copyright + * notice appear in all copies and that both that copyright notice and + * this permission notice appear in supporting documentation, and that + * the name of M.I.T. not be used in advertising or publicity pertaining + * to distribution of the software without specific, written prior + * permission. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * M.I.T. makes no representations about the suitability of + * this software for any purpose. It is provided "as is" without express + * or implied warranty. + */ + +#ifndef CCI_STREAM_H +#define CCI_STREAM_H + +#include "cci_types.h" + +cc_int32 cci_stream_new (cci_stream_t *out_stream); + +cc_uint32 cci_stream_release (cci_stream_t io_stream); + +inline cc_uint64 cci_stream_size (cci_stream_t in_stream); + +inline const char *cci_stream_data (cci_stream_t in_stream); + +cc_uint32 cci_stream_read (cci_stream_t in_stream, + void *io_data, + cc_uint64 in_size); +cc_uint32 cci_stream_write (cci_stream_t in_stream, + const void *in_data, + cc_uint64 in_size); + +cc_uint32 cci_stream_read_string (cci_stream_t io_stream, + char **out_string); +cc_uint32 cci_stream_write_string (cci_stream_t io_stream, + const char *in_string); + +cc_uint32 cci_stream_read_int32 (cci_stream_t io_stream, + cc_int32 *out_int32); +cc_uint32 cci_stream_write_int32 (cci_stream_t io_stream, + cc_int32 in_int32); + +cc_uint32 cci_stream_read_uint32 (cci_stream_t io_stream, + cc_uint32 *out_uint32); +cc_uint32 cci_stream_write_uint32 (cci_stream_t io_stream, + cc_uint32 in_uint32); + +cc_uint32 cci_stream_read_int64 (cci_stream_t io_stream, + cc_int64 *out_int64); +cc_uint32 cci_stream_write_int64 (cci_stream_t io_stream, + cc_int64 in_int64); + +cc_uint32 cci_stream_read_uint64 (cci_stream_t io_stream, + cc_uint64 *out_uint64); +cc_uint32 cci_stream_write_uint64 (cci_stream_t io_stream, + cc_uint64 in_uint64); + +cc_uint32 cci_stream_read_time (cci_stream_t io_stream, + cc_time_t *out_time); +cc_uint32 cci_stream_write_time (cci_stream_t io_stream, + cc_time_t in_time); + +#endif /* CCI_STREAM_H */ |