Subversion Repositories tpanel

Rev

Rev 383 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 383 Rev 386
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2020 to 2022 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2020 to 2023 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 175... Line 175...
175
    {
175
    {
176
        MSG_ERROR("Error freeing an object: " << e.what());
176
        MSG_ERROR("Error freeing an object: " << e.what());
177
    }
177
    }
178
}
178
}
179
 
179
 
-
 
180
void TObject::markDroped(ulong handle)
-
 
181
{
-
 
182
    DECL_TRACER("TObject::markDroped(ulong handle)");
-
 
183
 
-
 
184
    OBJECT_t *obj = findObject(handle);
-
 
185
 
-
 
186
    if (!obj)
-
 
187
        return;
-
 
188
 
-
 
189
    obj->remove = true;
-
 
190
}
-
 
191
 
180
bool TObject::addObject(OBJECT_t& obj)
192
bool TObject::addObject(OBJECT_t& obj)
181
{
193
{
182
    DECL_TRACER("TObject::addObject(OBJECT_t& obj)");
194
    DECL_TRACER("TObject::addObject(OBJECT_t& obj)");
183
 
195
 
184
    if (obj.handle == 0 || obj.type == OBJ_NONE)
196
    if (obj.handle == 0 || obj.type == OBJ_NONE)