void destroyClient(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { int h = GetHandle(nrhs, prhs); MapDestroy(h); #ifdef WIN32 // kill running proxy notify process if (h == Notify::handle) Notify::cleanup(); #endif RETURN(1); }
void GleisbildClear(GleisbildStruct *Data) { if (GleisbildGetGleisbildDb(Data) != (Map *)NULL) MapDestroy(GleisbildGetGleisbildDb(Data)); GleisbildSetNumPages(Data, 0); GleisbildSetGleisbildDb(Data, MapCreate()); if (GleisbildGetGleisbildDb(Data) != (Map *)NULL) { MapInit(GleisbildGetGleisbildDb(Data), (CmpFkt)GleisbildIdCmp, (MapKeyDelCbFkt)NULL, (MapDataDelCbFkt)free); } }
void CanMemberClear(CanMemberStruct *Data) { if (CanMemberGetCanMemberDb(Data) != (Map *)NULL) MapDestroy(CanMemberGetCanMemberDb(Data)); CanMemberSetCanMemberDb(Data, MapCreate()); CanMemberSetNumMembers(Data, 0); if (CanMemberGetCanMemberDb(Data) != (Map *)NULL) { MapInit(CanMemberGetCanMemberDb(Data), (CmpFkt)CanMemberUidCmp, (MapKeyDelCbFkt)NULL, (MapDataDelCbFkt)free); } }
void LokClear(LokStruct *Data) { if (LokGetLokDb(Data) != (Map *)NULL) MapDestroy(LokGetLokDb(Data)); LokSetNumLoks(Data, 0); LokSetIsChanged(Data, FALSE); LokSetLokDb(Data, MapCreate()); if (LokGetLokDb(Data) != (Map *)NULL) { MapInit(LokGetLokDb(Data), (CmpFkt)strcmp, (MapKeyDelCbFkt)NULL, (MapDataDelCbFkt)free); } }
void ConfigDestroy(ConfigStruct *Data) { if (Data != (ConfigStruct *)NULL) { if (ConfigGetParser(Data) != (IniParsStruct *)NULL) { IniParsDestroy(ConfigGetParser(Data)); } if (ConfigGetConfig(Data) != (Map *)NULL) { MapDestroy(ConfigGetConfig(Data)); } free(Data); } }
void SetDestroy(void *set) { MapDestroy(set); }
void LokDestroy(LokStruct *Data) { if (LokGetLokDb(Data) != (Map *)NULL) MapDestroy(LokGetLokDb(Data)); free(Data); }
void Cs2CfgDataDestroy(Cs2CfgData *Data) { MapDestroy(Cs2CfgDataGetCfgDatas(Data)); free(Data); }
void SetDestroy(Set *set) { MapDestroy(set); }
void GleisbildDestroy(GleisbildStruct *Data) { if (GleisbildGetGleisbildDb(Data) != (Map *)NULL) MapDestroy(GleisbildGetGleisbildDb(Data)); free(Data); }
void CanMemberDestroy(CanMemberStruct *Data) { if (CanMemberGetCanMemberDb(Data) != (Map *)NULL) MapDestroy(CanMemberGetCanMemberDb(Data)); free(Data); }
void destroyClient(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { MapDestroy(GetHandle(nrhs, prhs)); RETURN(1); }