Index: extobj.h =================================================================== --- extobj.h (nonexistent) +++ extobj.h (revision 10859) @@ -0,0 +1,45 @@ +/* + * COPYRIGHT + * + * cschem - modular/flexible schematics editor - libcschem (core library) + * Copyright (C) 2024 Tibor 'Igor2' Palinkas + * + * This library is free software; you can redistribute 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.1 of the License, or (at your option) any later version.* + * + * This library 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. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Contact: + * Project page: http://repo.hu/projects/sch-rnd + * contact lead developer: http://www.repo.hu/projects/sch-rnd/contact.html + * mailing list: http://www.repo.hu/projects/sch-rnd/contact.html + */ + +#include + +typedef struct csch_extobj_impl_s { + const char *name; /* also the hash key */ + + void (*attr_edit_pre)(csch_cgrp_t *grp, const char *key); + void (*attr_edit_post)(csch_cgrp_t *grp, const char *key); + void (*update)(csch_cgrp_t *grp); + void (*gui_edit)(csch_cgrp_t *grp); +} csch_extobj_impl_t; + +void csch_extobj_impl_reg(const csch_extobj_impl_t *impl); +void csch_extobj_impl_unreg(const csch_extobj_impl_t *impl); + + + +/* internal, do not call */ +void csch_extobj_init(void); +void csch_extobj_uninit(void);