blob: 8c7b1ce3c82c10c6b346f8e0c6a664b0acb666a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
**
*/
#include <stdio.h>
#include <stdlib.h>
#include "v_cmd_gen.h"
#if !defined V_GENERATE_FUNC_MODE
#include "verse.h"
#include "vs_server.h"
/*
typedef struct {
VSNodeHead head;
} VSNodeObject;
VSNodeObject *vs_o_create_node(unsigned int owner)
{
VSNodeObject *node;
node = malloc(sizeof *node);
create_node_head(&node->head, name, owner);
vs_add_new_node(&node->head, V_NT_OBJECT);
return node;
}
void vs_o_destroy_node(VSNodeObject *node)
{
destroy_node_head(&node->head);
free(node);
}
void vs_o_subscribe(VSNodeObject *node)
{
}
static void callback_send_o_unsubscribe(void *user, VNodeID node_id)
{
VSNodeObject *node;
node = (VSNodeObject *)vs_get_node(node_id);
if(node == NULL)
return;
vs_remove_subscriptor(node->head.subscribers);
}
void vs_o_callback_init(void)
{
}
*/
#endif
|