47 строки
2.2 KiB
C
47 строки
2.2 KiB
C
/*
|
|
* $HEADER$
|
|
*
|
|
* Copyright 2002-2003. The Regents of the University of California. This material
|
|
* was produced under U.S. Government contract W-7405-ENG-36 for Los Alamos
|
|
* National Laboratory, which is operated by the University of California for
|
|
* the U.S. Department of Energy. The Government is granted for itself and
|
|
* others acting on its behalf a paid-up, nonexclusive, irrevocable worldwide
|
|
* license in this material to reproduce, prepare derivative works, and
|
|
* perform publicly and display publicly. Beginning five (5) years after
|
|
* October 10,2002 subject to additional five-year worldwide renewals, the
|
|
* Government is granted for itself and others acting on its behalf a paid-up,
|
|
* nonexclusive, irrevocable worldwide license in this material to reproduce,
|
|
* prepare derivative works, distribute copies to the public, perform publicly
|
|
* and display publicly, and to permit others to do so. NEITHER THE UNITED
|
|
* STATES NOR THE UNITED STATES DEPARTMENT OF ENERGY, NOR THE UNIVERSITY OF
|
|
* CALIFORNIA, NOR ANY OF THEIR EMPLOYEES, MAKES ANY WARRANTY, EXPRESS OR
|
|
* IMPLIED, OR ASSUMES ANY LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY,
|
|
* COMPLETENESS, OR USEFULNESS OF ANY INFORMATION, APPARATUS, PRODUCT, OR
|
|
* PROCESS DISCLOSED, OR REPRESENTS THAT ITS USE WOULD NOT INFRINGE PRIVATELY
|
|
* OWNED RIGHTS.
|
|
|
|
* Additionally, this program is free software; you can distribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public License as
|
|
* published by the Free Software Foundation; either version 2 of the License,
|
|
* or any later version. Accordingly, this program is distributed in the hope
|
|
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*/
|
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
|
|
|
#include "lam/lfc/object.h"
|
|
|
|
lam_class_info_t lam_object_cls = { "lam_object_t", 0, lam_obj_init, lam_obj_destroy };
|
|
|
|
void lam_obj_init(lam_object_t *obj)
|
|
{
|
|
obj->obj_refcnt = 1;
|
|
}
|
|
|
|
void lam_obj_destroy(lam_object_t *obj)
|
|
{
|
|
free(obj);
|
|
}
|
|
|