Path: blob/main/crypto/krb5/src/ccapi/common/cci_identifier.h
39537 views
/* ccapi/common/cci_identifier.h */1/*2* Copyright 2006 Massachusetts Institute of Technology.3* All Rights Reserved.4*5* Export of this software from the United States of America may6* require a specific license from the United States Government.7* It is the responsibility of any person or organization contemplating8* export to obtain such a license before exporting.9*10* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and11* distribute this software and its documentation for any purpose and12* without fee is hereby granted, provided that the above copyright13* notice appear in all copies and that both that copyright notice and14* this permission notice appear in supporting documentation, and that15* the name of M.I.T. not be used in advertising or publicity pertaining16* to distribution of the software without specific, written prior17* permission. Furthermore if you modify this software you must label18* your software as modified software and not distribute it in such a19* fashion that it might be confused with the original M.I.T. software.20* M.I.T. makes no representations about the suitability of21* this software for any purpose. It is provided "as is" without express22* or implied warranty.23*/2425#ifndef CCI_IDENTIFIER_H26#define CCI_IDENTIFIER_H2728#include "cci_types.h"2930extern const cci_identifier_t cci_identifier_uninitialized;3132cc_int32 cci_identifier_new_uuid (cci_uuid_string_t *out_uuid_string);3334cc_int32 cci_identifier_new (cci_identifier_t *out_identifier,35cci_uuid_string_t in_server_id);3637cc_int32 cci_identifier_copy (cci_identifier_t *out_identifier,38cci_identifier_t in_handle);3940cc_int32 cci_identifier_release (cci_identifier_t in_identifier);4142cc_int32 cci_identifier_compare (cci_identifier_t in_identifier,43cci_identifier_t in_compare_to_identifier,44cc_uint32 *out_equal);4546cc_int32 cci_identifier_is_for_server (cci_identifier_t in_identifier,47cci_uuid_string_t in_server_id,48cc_uint32 *out_is_for_server);4950cc_int32 cci_identifier_compare_server_id (cci_identifier_t in_identifier,51cci_identifier_t in_compare_to_identifier,52cc_uint32 *out_equal_server_id);5354cc_int32 cci_identifier_is_initialized (cci_identifier_t in_identifier,55cc_uint32 *out_is_initialized);5657cc_uint32 cci_identifier_read (cci_identifier_t *out_identifier,58k5_ipc_stream io_stream);5960cc_uint32 cci_identifier_write (cci_identifier_t in_identifier,61k5_ipc_stream io_stream);6263#endif /* CCI_IDENTIFIER_H */646566