/************************************************/ /* */ /* File : spy_extended.c */ /* Description : Extended Spy library */ /* Real code is in spy_CB.c */ /* spy_inet.c and spy_ybos.c */ /* */ /* Author: Sfiligoi Igor */ /* */ /* Created : 21.07.1997 (as spy.c) */ /* Recreated : 14.12.1998 */ /* Last modified: 14.12.1998 */ /* */ /************************************************/ #include "spy_extended.h" #include "spy_CB.h" #include "spy_inet.h" #include "spy_ybos.h" int spy_close_ext(SPY_ext_id sid) { switch (sid->spy_type) { case SPY_TYPE_CB: return spy_close_CB(sid); break; case SPY_TYPE_INET: return spy_close_inet(sid); break; case SPY_TYPE_YBOS: return spy_close_ybos(sid); break; } } int spy_get_ext(SPY_ext_id sid,/* IN : SPY_id returned by spy_open_... */ char **buf, /* OUT: pointer to the data */ /* Should be disposed by the caller */ int *bufsize) /* OUT: buffer size */ { switch (sid->spy_type) { case SPY_TYPE_CB: return spy_get_CB(sid,buf,bufsize); break; case SPY_TYPE_INET: return spy_get_inet(sid,buf,bufsize); break; case SPY_TYPE_YBOS: return spy_get_ybos(sid,buf,bufsize); break; } }