DNS查询数据信
2010年06月8日
by 温 云龙
76 views
0 comments
2010年06月8日
by 温 云龙
76 views
0 comments
2009年09月24日
by 温 云龙
257 views
0 comments
config.h
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include \"list.h\"
typedef struct config_node {
char *section;
char *name;
char *value;
} config_node_t;
int config_node_add(list_t *list, char *section, char *name, char *value);
int config_load(list_t **list, const char *filepath);
char *config_get(list_t *list, const char *section, const char *name, const char *def);
void config_free(list_t *list);
#endif /* __CONFIG_H__ */
2009年09月24日
by 温 云龙
130 views
0 comments
源代码
list.h
#ifndef __LIST_H__
#define __LIST_H__
typedef struct list_node
{
struct list_node *prv;
struct list_node *next;
void *data;
} list_node_t;
typedef struct
{
list_node_t *first;
list_node_t *last;
int size;
} list_t;
int list_init(list_t **list);
int list_add(list_t *list, void *data);
void *list_get(list_t *list, int index);
int list_remove(list_t *list, int index, void (*data_free) (void *));
void list_free(list_t *list, void (*data_free) (void *));
#endif /* __LIST_H__ */
2009年08月31日
by 温 云龙
120 views
0 comments
异形窗口利用蒙板(mask)实现,蒙板的数据从图片获得,每一点只有透明和不透明两种状态,不透明区域显示该窗口的背景,透明区域显示其后桌面或其它应用 (全文…)