aa94471997-09-16David Kågedal  #include "remote.h" string objectid; string name; object con; object ctx;
a53efa1997-09-23David Kågedal int is_async;
aa94471997-09-16David Kågedal  mixed `() (mixed ... args) {
a53efa1997-09-23David Kågedal  mixed data = ctx->encode_call(objectid, name, args, is_async); if (is_async) con->call_async(data); else return con->call_sync(data); return 0;
aa94471997-09-16David Kågedal }
a53efa1997-09-23David Kågedal mixed sync(mixed ... args) { mixed data = ctx->encode_call(objectid, name, args, is_async); return con->call_sync(data); } void async(mixed ... args) { mixed data = ctx->encode_call(objectid, name, args, is_async); con->call_async(data); } void create(string oid, string n, object cn, object ct, int a)
aa94471997-09-16David Kågedal { objectid = oid; name = n; con = cn; ctx = ct;
a53efa1997-09-23David Kågedal  is_async = a;
aa94471997-09-16David Kågedal }