Lines Matching defs:this
5 * Permission to use, copy, modify, and distribute this software for any
7 * copyright notice and this permission notice appear in all copies.
61 static struct __res_state * nw_res_get(struct irs_nw *this);
62 static void nw_res_set(struct irs_nw *this,
66 static int init(struct irs_nw *this);
71 irs_gen_nw(struct irs_acc *this) {
72 struct gen_p *accpvt = (struct gen_p *)this->private;
104 nw_close(struct irs_nw *this) {
105 struct pvt *pvt = (struct pvt *)this->private;
107 nw_minimize(this);
113 memput(this, sizeof *this);
117 nw_next(struct irs_nw *this) {
118 struct pvt *pvt = (struct pvt *)this->private;
122 if (init(this) == -1)
142 nw_byname(struct irs_nw *this, const char *name, int type) {
143 struct pvt *pvt = (struct pvt *)this->private;
148 if (init(this) == -1)
165 nw_byaddr(struct irs_nw *this, void *net, int length, int type) {
166 struct pvt *pvt = (struct pvt *)this->private;
171 if (init(this) == -1)
188 nw_rewind(struct irs_nw *this) {
189 struct pvt *pvt = (struct pvt *)this->private;
200 nw_minimize(struct irs_nw *this) {
201 struct pvt *pvt = (struct pvt *)this->private;
214 nw_res_get(struct irs_nw *this) {
215 struct pvt *pvt = (struct pvt *)this->private;
225 nw_res_set(this, res, free);
232 nw_res_set(struct irs_nw *this, struct __res_state *res,
234 struct pvt *pvt = (struct pvt *)this->private;
253 init(struct irs_nw *this) {
254 struct pvt *pvt = (struct pvt *)this->private;
256 if (!pvt->res && !nw_res_get(this))