| 260 | */ |
| 261 | |
| 262 | static void |
| 263 | choose_device_cb( |
| 264 | const char *device_class, /* I - Class */ |
| 265 | const char *device_id, /* I - 1284 device ID */ |
| 266 | const char *device_info, /* I - Description */ |
| 267 | const char *device_make_and_model, /* I - Make and model */ |
| 268 | const char *device_uri, /* I - Device URI */ |
| 269 | const char *device_location, /* I - Location */ |
| 270 | const char *title) /* I - Page title */ |
| 271 | { |
| 272 | /* |
| 273 | * For modern browsers, start a multi-part page so we can show that something |
| 274 | * is happening. Non-modern browsers just get everything at the end... |
| 275 | */ |
| 276 | |
| 277 | if (current_device == 0 && cgiSupportsMultipart()) |
| 278 | { |
| 279 | cgiStartMultipart(); |
| 280 | cgiStartHTML(title); |
| 281 | cgiCopyTemplateLang("choose-device.tmpl"); |
| 282 | cgiEndHTML(); |
| 283 | fflush(stdout); |
| 284 | } |
| 285 | |
| 286 | |
| 287 | /* |
| 288 | * Add the device to the array... |
| 289 | */ |
| 290 | |
| 291 | cgiSetArray("device_class", current_device, device_class); |
| 292 | cgiSetArray("device_id", current_device, device_id); |
| 293 | cgiSetArray("device_info", current_device, device_info); |
| 294 | cgiSetArray("device_make_and_model", current_device, device_make_and_model); |
| 295 | cgiSetArray("device_uri", current_device, device_uri); |
| 296 | cgiSetArray("device_location", current_device, device_location); |
| 297 | |
| 298 | current_device ++; |
| 299 | } |
| 300 | |
| 301 | |
| 302 | /* |
nothing calls this directly
no test coverage detected