No more "Proxy" in idl files


While cleaning up sfidl, I removed the "Proxy" primitive type from sfidl. This
had been a FIXME for a long time anyway. So bserecords.idl says now:

class Item;

sequence ProxySeq {
  Info   BLURB = ("An item list");
  Item   proxies;
  Info   HELP = ("A list of BSE objects, usually items.");

instead of using "Proxy proxies;". As the C++ binding will be statically
typed, it would be probably a good idea to introduce different kinds of
sequences to minimize casts. ProxySeq then probably should be called ItemSeq.

Currently sfidl generates the param spec for objects like this:

      case OBJECT:
          /* FIXME: the ParamSpec doesn't transport the type of the objects we require */
          pspec = "sfidl_pspec_Proxy";
          if (pdef.args == "")
            pspec += "_default (" + group + ",\"" + + "\")";
            pspec += " (" + group + ",\"" + + "\"," + pdef.args + ")";

Probably the SFI ParamSpec for proxies should say which type to accept?

   Cu... Stefan
  -* Stefan Westerfeld, (PGP!), Hamburg/Germany
     KDE Developer, project infos at *-         

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]