/*
* Copyright (c) 2004 Sendmail, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*
* $Id: servid.h,v 1.3 2004/12/26 04:08:55 ca Exp $
*/
#ifndef SM_SERVID_H
#define SM_SERVID_H 1
#include "sm/generic.h"
#include "sm/types.h"
#include "sm/error.h"
typedef struct id_ctx_S id_ctx_T, *id_ctx_P;
sm_ret_T sm_new_id_ctx(uint _size, uint _maxid, id_ctx_P *_pid_ctx);
sm_ret_T sm_chg_id_ctx(id_ctx_P _id_ctx, uint _size);
sm_ret_T sm_destroy_id_ctx(id_ctx_P _id_ctx);
sm_ret_T sm_new_id(id_ctx_P _id_ctx, uint *_pid);
sm_ret_T sm_free_id(id_ctx_P _id_ctx, uint _id);
#endif /* SM_SERVID_H */
syntax highlighted by Code2HTML, v. 0.9.1