]>
git.saurik.com Git - apple/libinfo.git/blob - netinfo.subproj/ni_stub.c
26 static stub_type_1
empty_stub_type_1()
30 memset(&a
, 0, sizeof(stub_type_1
));
34 static stub_type_2
empty_stub_type_2()
38 memset(&a
, 0, sizeof(stub_type_2
));
42 static int debug_log(const char *func
)
44 syslog(LOG_ERR
, "NetInfo stub: %s", func
);
48 const char *ni_error(int a
) { return "Communication failure"; }
49 int multi_call(int a
, void *b
, int c
, int d
, int e
, void *f
, void *g
, int h
, void *i
, void *j
, int (*k
)(void *, void *, int), int l
) { return RPC_FAILED
; }
50 stub_type_2
ni_prop_dup(stub_type_2 a
) { return empty_stub_type_2(); }
51 int ni_name_match(void *a
, void *b
) { return 0; }
52 void *ni_name_dup(void *a
) { return NULL
; }
54 stub_type_1
ni_idlist_dup(stub_type_1 a
) { return empty_stub_type_1(); }
55 stub_type_1
ni_proplist_dup(stub_type_1 a
) { return empty_stub_type_1(); }
56 stub_type_1
ni_namelist_dup(stub_type_1 a
) { return empty_stub_type_1(); }
58 int ni_idlist_delete(void *a
, int b
) { return -1; }
59 int ni_proplist_match(stub_type_1 a
, void *b
, void *c
) { return -1; }
60 int ni_namelist_match(stub_type_1 a
, void *b
) { return -1; }
62 void ni_idlist_insert(void *a
, int b
, int c
) {}
63 void ni_idlist_free(void *a
) {}
64 void ni_proplist_insert(void *a
, stub_type_2 b
, int c
) {}
65 void ni_proplist_delete(void *a
, int b
) {}
66 void ni_proplist_free(void *a
) {}
67 void ni_proplist_list_free(void *a
) {}
68 void ni_prop_free(void *a
) {}
69 void ni_name_free(void *a
) {}
70 void ni_namelist_free(void *a
) {}
71 void ni_namelist_insert(void *a
, void *b
, int c
) {}
72 void ni_namelist_delete(void *a
, int b
) {}
73 void ni_entrylist_insert(void *a
, stub_type_1 b
) {}
74 void ni_entrylist_delete(void *a
, int b
) {}
75 void ni_entrylist_free(void *a
) {}
76 void ni_parse_url(void *a
, void *b
, void *c
, void *d
, void *e
, void *f
) {}
77 void ni_setabort(void *a
, int b
) {}
78 void ni_setwritetimeout(void *a
, int b
) {}
79 void ni_setreadtimeout(void *a
, int b
) {}
80 void ni_needwrite(void *a
, int b
) {}
81 void ni_free(void *a
) {}
83 int ni_find(void *a
, void *b
, void *c
, int d
) { return debug_log(__FUNCTION__
); }
84 int ni_open(void *a
, void *b
, void *c
) { return debug_log(__FUNCTION__
); }
85 int ni_fancyopen(void *a
, void *b
, void *c
, void *d
) { return debug_log(__FUNCTION__
); }
86 int ni_host_domain(void *a
, void *b
, void *c
) { return debug_log(__FUNCTION__
); }
87 int ni_url(void *a
, void *b
, void *c
) { return debug_log(__FUNCTION__
); }
89 void *_ni_dup(void *a
) { debug_log(__FUNCTION__
); return NULL
; }
90 void *ni_connect(void *a
, void *b
) { debug_log(__FUNCTION__
); return NULL
; }
91 void *ni_new(void *a
, void *b
) { debug_log(__FUNCTION__
); return NULL
; }
93 int ni_lookupprop(void *a
, void *b
, void *c
, void *d
) { return NI_FAILED
; }
94 int ni_search(void *a
, void *b
, void *c
, void *d
, int e
, void *f
) { return NI_FAILED
; }
95 int ni_pathsearch(void *a
, void *b
, void *c
) { return NI_FAILED
; }
96 int ni_pwdomain(void *a
, void *b
) { return NI_FAILED
; }
97 int ni_addrtag(void *a
, void *b
, void *c
) { return NI_FAILED
; }
98 int ni_statistics(void *q
, void *b
) { return NI_FAILED
; }
99 int ni_root(void *a
, void *b
) { return NI_FAILED
; }
100 int ni_self(void *a
, void *b
) { return NI_FAILED
; }
101 int ni_parent(void *q
, void *b
, void *c
) { return NI_FAILED
; }
102 int ni_children(void *q
, void *b
, void *c
) { return NI_FAILED
; }
103 int ni_create(void *a
, void *b
, stub_type_1 c
, void *d
, int e
) { return NI_FAILED
; }
104 int ni_destroy(void *a
, void *b
, stub_type_0 c
) { return NI_FAILED
; }
105 int ni_write(void *a
, void *b
, stub_type_1 c
) { return NI_FAILED
; }
106 int ni_read(void *a
, void *b
, void *c
) { return NI_FAILED
; }
107 int ni_lookup(void *a
, void *b
, void *c
, void *d
, void *e
) { return NI_FAILED
; }
108 int ni_lookupread(void *a
, void *b
, void *c
, void *d
, void *e
) { return NI_FAILED
; }
109 int ni_list(void *a
, void *b
, void *c
, void *d
) { return NI_FAILED
; }
110 int ni_listall(void *a
, void *b
, void *c
) { return NI_FAILED
; }
111 int ni_readprop(void *a
, void *b
, int c
, void *d
) { return NI_FAILED
; }
112 int ni_writeprop(void *a
, void *b
, int c
, stub_type_1 d
) { return NI_FAILED
; }
113 int ni_listprops(void *a
, void *b
, void *c
) { return NI_FAILED
; }
114 int ni_createprop(void *a
, void *b
, stub_type_2 c
, int d
) { return NI_FAILED
; }
115 int ni_destroyprop(void *a
, void *b
, int c
) { return NI_FAILED
; }
116 int ni_renameprop(void *a
, void *b
, int c
, void *d
) { return NI_FAILED
; }
117 int ni_createname(void *a
, void *b
, int c
, void *d
, int e
) { return NI_FAILED
; }
118 int ni_destroyname(void *a
, void *b
, int c
, int d
) { return NI_FAILED
; }
119 int ni_writename(void *a
, void *b
, int c
, int d
, void *e
) { return NI_FAILED
; }
120 int ni_readname(void *a
, void *b
, int c
, int d
, void *e
) { return NI_FAILED
; }
121 int ni_resync(void *a
) { return NI_FAILED
; }
122 int ni_setuser(void *a
, void *b
) { return NI_FAILED
; }
123 int ni_setpassword(void *a
, void *b
) { return NI_FAILED
; }
125 int xdr_ni_id(void *a
, void *b
) { return 0; }
126 int xdr_ni_name(void *a
, void *b
) { return 0; }
127 int xdr_ni_namelist(void *a
, void *b
) { return 0; }
128 int xdr_ni_property(void *a
, void *b
) { return 0; }
129 int xdr_ni_proplist(void *a
, void *b
) { return 0; }
130 int xdr_ni_idlist(void *a
, void *b
) { return 0; }
131 int xdr_ni_object(void *a
, void *b
) { return 0; }
132 int xdr_ni_status(void *a
, void *b
) { return 0; }
133 int xdr_ni_id_res(void *a
, void *b
) { return 0; }
134 int xdr_ni_parent_stuff(void *a
, void *b
) { return 0; }
135 int xdr_ni_parent_res(void *a
, void *b
) { return 0; }
136 int xdr_ni_children_stuff(void *a
, void *b
) { return 0; }
137 int xdr_ni_children_res(void *a
, void *b
) { return 0; }
138 int xdr_ni_entry(void *a
, void *b
) { return 0; }
139 int xdr_ni_entrylist(void *a
, void *b
) { return 0; }
140 int xdr_ni_list_stuff(void *a
, void *b
) { return 0; }
141 int xdr_ni_list_res(void *a
, void *b
) { return 0; }
142 int xdr_ni_proplist_stuff(void *a
, void *b
) { return 0; }
143 int xdr_ni_create_args(void *a
, void *b
) { return 0; }
144 int xdr_ni_proplist_res(void *a
, void *b
) { return 0; }
145 int xdr_ni_create_stuff(void *a
, void *b
) { return 0; }
146 int xdr_ni_create_res(void *a
, void *b
) { return 0; }
147 int xdr_ni_destroy_args(void *a
, void *b
) { return 0; }
148 int xdr_ni_lookup_args(void *a
, void *b
) { return 0; }
149 int xdr_ni_lookup_stuff(void *a
, void *b
) { return 0; }
150 int xdr_ni_lookup_res(void *a
, void *b
) { return 0; }
151 int xdr_ni_name_args(void *a
, void *b
) { return 0; }
152 int xdr_ni_createprop_args(void *a
, void *b
) { return 0; }
153 int xdr_ni_writeprop_args(void *a
, void *b
) { return 0; }
154 int xdr_ni_prop_args(void *a
, void *b
) { return 0; }
155 int xdr_ni_namelist_stuff(void *a
, void *b
) { return 0; }
156 int xdr_ni_namelist_res(void *a
, void *b
) { return 0; }
157 int xdr_ni_propname_args(void *a
, void *b
) { return 0; }
158 int xdr_ni_createname_args(void *a
, void *b
) { return 0; }
159 int xdr_ni_nameindex_args(void *a
, void *b
) { return 0; }
160 int xdr_ni_writename_args(void *a
, void *b
) { return 0; }
161 int xdr_ni_readname_stuff(void *a
, void *b
) { return 0; }
162 int xdr_ni_readname_res(void *a
, void *b
) { return 0; }
163 int xdr_ni_binding(void *a
, void *b
) { return 0; }
164 int xdr_ni_rparent_res(void *a
, void *b
) { return 0; }
165 int xdr_ni_object_list(void *a
, void *b
) { return 0; }
166 int xdr_ni_object_node(void *a
, void *b
) { return 0; }
167 int xdr_ni_readall_stuff(void *a
, void *b
) { return 0; }
168 int xdr_ni_readall_res(void *a
, void *b
) { return 0; }
169 int xdr_ni_proplist_list(void *a
, void *b
) { return 0; }
170 int xdr_ni_listall_stuff(void *a
, void *b
) { return 0; }
171 int xdr_ni_listall_res(void *a
, void *b
) { return 0; }