supply interfaces of class General in swig file