2 * (c) Copyright 1992 by Panagiotis Tsirigotis
3 * (c) Sections Copyright 1998-2001 by Rob Braun
4 * All rights reserved. The file named COPYRIGHT specifies the terms
5 * and conditions for redistribution.
12 * $Id: builtins.h,v 1.2 2003/05/08 14:52:24 steveg Exp $
23 voidfunc b_handler ; /* builtin service handler */
24 boolean_e b_fork_server ; /* whether a server must be forked */
27 typedef struct builtin builtin_s ;
30 * All builtins are invoked with a struct server argument
32 #define BUILTIN_HANDLER( bp ) ( (bp)->b_handler )
33 #define BUILTIN_INVOKE( bp, serp ) (*(bp)->b_handler)( serp )
34 #define BUILTIN_FORKS( bp ) ( (bp)->b_fork_server == YES )
37 struct builtin_service
39 const char *bs_name ; /* for identification purposes */
40 int bs_socket_type ; /* for identification purposes */
44 const builtin_s *builtin_find(const char *service_name,int type);
45 const builtin_s *builtin_lookup(const struct builtin_service services[],const char *service_name,int type);
47 #endif /* BUILTIN_H */