00001 /* 00002 Header to generate SMI wrappers 00003 AUP2, Sec. 7.03.3, 7.05.3, etc. 00004 00005 Copyright 2003 by Marc J. Rochkind. All rights reserved. 00006 May be copied only for purposes and under conditions described 00007 on the Web page www.basepath.com/aup/copyright.htm. 00008 00009 The Example Files are provided "as is," without any warranty; 00010 without even the implied warranty of merchantability or fitness 00011 for a particular purpose. The author and his publisher are not 00012 responsible for any damages, direct or incidental, resulting 00013 from the use or non-use of these Example Files. 00014 00015 The Example Files may contain defects, and some contain deliberate 00016 coding mistakes that were included for educational reasons. 00017 You are responsible for determining if and how the Example Files 00018 are to be used. 00019 00020 */ 00021 /* 00022 Generates smi wrapper depending on arg. 00023 To be included by smi_skt_wrap.c, smi_fifl_wrap.c, etc. 00024 */ 00025 00026 #define wrapper(sfx) \ 00027 SMIQ *smi_open(const char *name, SMIENTITY entity, size_t msgsize)\ 00028 {\ 00029 return smi_open_##sfx(name, entity, msgsize);\ 00030 }\ 00031 \ 00032 bool smi_close(SMIQ *sqp)\ 00033 {\ 00034 return smi_close_##sfx(sqp);\ 00035 }\ 00036 \ 00037 bool smi_send_getaddr(SMIQ *sqp, struct client_id *client, void **addr)\ 00038 {\ 00039 return smi_send_getaddr_##sfx(sqp, client, addr);\ 00040 }\ 00041 \ 00042 bool smi_send_release(SMIQ *sqp)\ 00043 {\ 00044 return smi_send_release_##sfx(sqp);\ 00045 }\ 00046 \ 00047 bool smi_receive_getaddr(SMIQ *sqp, void **addr)\ 00048 {\ 00049 return smi_receive_getaddr_##sfx(sqp, addr);\ 00050 }\ 00051 \ 00052 bool smi_receive_release(SMIQ *sqp)\ 00053 {\ 00054 return smi_receive_release_##sfx(sqp);\ 00055 }