Пример #1
0
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);
}
Пример #2
0
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);
   }
}
Пример #3
0
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);
   }
}
Пример #4
0
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);
   }
}
Пример #5
0
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);
   }
}
Пример #6
0
void SetDestroy(void *set)
{
    MapDestroy(set);
}
Пример #7
0
void LokDestroy(LokStruct *Data)
{
   if (LokGetLokDb(Data) != (Map *)NULL)
      MapDestroy(LokGetLokDb(Data));
   free(Data);
}
Пример #8
0
void Cs2CfgDataDestroy(Cs2CfgData *Data)
{
   MapDestroy(Cs2CfgDataGetCfgDatas(Data));
   free(Data);
}
Пример #9
0
void SetDestroy(Set *set)
{
    MapDestroy(set);
}
Пример #10
0
void GleisbildDestroy(GleisbildStruct *Data)
{
   if (GleisbildGetGleisbildDb(Data) != (Map *)NULL)
      MapDestroy(GleisbildGetGleisbildDb(Data));
   free(Data);
}
Пример #11
0
void CanMemberDestroy(CanMemberStruct *Data)
{
   if (CanMemberGetCanMemberDb(Data) != (Map *)NULL)
      MapDestroy(CanMemberGetCanMemberDb(Data));
   free(Data);
}
Пример #12
0
void destroyClient(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
  MapDestroy(GetHandle(nrhs, prhs));
  RETURN(1);
}