All pastes #728042 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-06 17:10 UTC
rendered paste body
#ifndef __LWC_COMPONENT_INCLUDED
#define __LWC_COMPONENT_INCLUDED

#include <string.h>

typedef int lwc_init(int smth);

typedef void lwc_set_attribute(char *name, void *attr);

typedef struct {
        lwc_init *init;
        lwc_set_attribute *set_attribute;

} lwc_component;

void register_component(lwc_component *comp);

#endif

lwc_component test_data = {test_component_init, NULL};
comp->init(3);