Lines Matching defs:private

43 	struct my_data *private = (struct my_data *)_private;
46 assertEqualInt(MAGIC, private->magic);
47 ++private->read_called;
48 return (private->read_return);
54 struct my_data *private = (struct my_data *)_private;
58 assertEqualInt(MAGIC, private->magic);
59 ++private->write_called;
60 return (private->write_return);
66 struct my_data *private = (struct my_data *)_private;
68 assertEqualInt(MAGIC, private->magic);
69 ++private->open_called;
70 return (private->open_return);
76 struct my_data *private = (struct my_data *)_private;
78 assertEqualInt(MAGIC, private->magic);
79 ++private->close_called;
80 return (private->close_return);
87 struct my_data private;
89 memset(&private, 0, sizeof(private));
90 private.magic = MAGIC;
91 private.open_return = ARCHIVE_FATAL;
95 archive_read_open(a, &private, my_open, my_read, my_close));
96 assertEqualInt(1, private.open_called);
97 assertEqualInt(0, private.read_called);
98 assertEqualInt(1, private.close_called);
100 assertEqualInt(1, private.open_called);
101 assertEqualInt(0, private.read_called);
102 assertEqualInt(1, private.close_called);
104 memset(&private, 0, sizeof(private));
105 private.magic = MAGIC;
106 private.open_return = ARCHIVE_FAILED;
110 archive_read_open(a, &private, my_open, my_read, my_close));
111 assertEqualInt(1, private.open_called);
112 assertEqualInt(0, private.read_called);
113 assertEqualInt(1, private.close_called);
115 assertEqualInt(1, private.open_called);
116 assertEqualInt(0, private.read_called);
117 assertEqualInt(1, private.close_called);
119 memset(&private, 0, sizeof(private));
120 private.magic = MAGIC;
121 private.open_return = ARCHIVE_WARN;
125 archive_read_open(a, &private, my_open, my_read, my_close));
126 assertEqualInt(1, private.open_called);
127 assertEqualInt(0, private.read_called);
128 assertEqualInt(1, private.close_called);
130 assertEqualInt(1, private.open_called);
131 assertEqualInt(0, private.read_called);
132 assertEqualInt(1, private.close_called);
134 memset(&private, 0, sizeof(private));
135 private.magic = MAGIC;
136 private.open_return = ARCHIVE_OK;
137 private.read_return = ARCHIVE_FATAL;
144 archive_read_open(a, &private, my_open, my_read, my_close));
145 assertEqualInt(1, private.open_called);
146 assertEqualInt(1, private.read_called);
147 assertEqualInt(1, private.close_called);
149 assertEqualInt(1, private.open_called);
150 assertEqualInt(1, private.read_called);
151 assertEqualInt(1, private.close_called);
153 memset(&private, 0, sizeof(private));
154 private.magic = MAGIC;
155 private.open_return = ARCHIVE_FATAL;
159 archive_write_open(a, &private, my_open, my_write, my_close));
160 assertEqualInt(1, private.open_called);
161 assertEqualInt(0, private.write_called);
162 assertEqualInt(0, private.close_called);
164 assertEqualInt(1, private.open_called);
165 assertEqualInt(0, private.write_called);
166 assertEqualInt(0, private.close_called);
168 memset(&private, 0, sizeof(private));
169 private.magic = MAGIC;
170 private.open_return = ARCHIVE_FATAL;
176 archive_write_open(a, &private, my_open, my_write, my_close));
177 assertEqualInt(1, private.open_called);
178 assertEqualInt(0, private.write_called);
179 assertEqualInt(0, private.close_called);
181 assertEqualInt(1, private.open_called);
182 assertEqualInt(0, private.write_called);
183 assertEqualInt(0, private.close_called);
185 memset(&private, 0, sizeof(private));
186 private.magic = MAGIC;
187 private.open_return = ARCHIVE_FATAL;
192 archive_write_open(a, &private, my_open, my_write, my_close));
193 assertEqualInt(1, private.open_called);
194 assertEqualInt(0, private.write_called);
195 assertEqualInt(0, private.close_called);
197 assertEqualInt(1, private.open_called);
198 assertEqualInt(0, private.write_called);
199 assertEqualInt(0, private.close_called);
201 memset(&private, 0, sizeof(private));
202 private.magic = MAGIC;
203 private.open_return = ARCHIVE_FATAL;
208 archive_write_open(a, &private, my_open, my_write, my_close));
209 assertEqualInt(1, private.open_called);
210 assertEqualInt(0, private.write_called);
211 assertEqualInt(0, private.close_called);
213 assertEqualInt(1, private.open_called);
214 assertEqualInt(0, private.write_called);
215 assertEqualInt(0, private.close_called);