SWIG API has separated structures for service and session now. index.h