11.7Ssnj/*	$NetBSD: extern.h,v 1.7 2009/10/21 01:07:46 snj Exp $	*/
21.1Schristos
31.1Schristos/*
41.1Schristos * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
51.1Schristos *
61.1Schristos * Redistribution and use in source and binary forms, with or without
71.1Schristos * modification, are permitted provided that the following conditions
81.1Schristos * are met:
91.1Schristos * 1. Redistributions of source code must retain the above copyright
101.1Schristos *    notice, this list of conditions and the following disclaimer.
111.1Schristos * 2. Redistributions in binary form must reproduce the above copyright
121.1Schristos *    notice, this list of conditions and the following disclaimer in the
131.1Schristos *    documentation and/or other materials provided with the distribution.
141.1Schristos *
151.1Schristos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
161.1Schristos * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
171.1Schristos * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
181.1Schristos * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
191.1Schristos * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
201.1Schristos * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
211.1Schristos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
221.1Schristos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
231.1Schristos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
241.1Schristos * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
251.1Schristos */
261.1Schristos
271.1Schristos/* announce.c */
281.6Slukemint announce(CTL_MSG *, const char *);
291.6Slukemint print_mesg(const char *, CTL_MSG *, const char *);
301.1Schristos
311.1Schristos/* print.c */
321.6Slukemvoid print_request(const char *, CTL_MSG *);
331.6Slukemvoid print_response(const char *, CTL_RESPONSE *);
341.1Schristos
351.1Schristos/* process.c */
361.5Slukemvoid process_request(CTL_MSG *, CTL_RESPONSE *);
371.5Slukemvoid do_announce(CTL_MSG *, CTL_RESPONSE *);
381.6Slukemint find_user(const char *, char *, size_t);
391.1Schristos
401.1Schristos/* table.c */
411.5SlukemCTL_MSG *find_match(CTL_MSG *);
421.5SlukemCTL_MSG *find_request(CTL_MSG *);
431.5Slukemvoid insert_table(CTL_MSG *, CTL_RESPONSE *);
441.6Slukemuint32_t new_id(void);
451.6Slukemu_char delete_invite(uint32_t);
461.2Smrg
471.2Smrg/* talkd.c */
481.2Smrgextern int debug;
491.2Smrgextern int logging;
501.5Slukemvoid tsa2sa(struct sockaddr *, const struct talkd_sockaddr *);
51