CAPS Universe documentation
1.0.4
All you need to know to be successful
|
A simple CAPS client demo. More...
Data Structures | |
struct | test_client |
struct | thread_data |
Macros | |
#define | THREAD_ARRAY_SIZE 10 |
Functions | |
void | sig_handler (int sig) |
static int | create_test_printing_file (int fh) |
static void * | keep_printer_busy (void *param) |
static size_t | find_free_slot (const struct thread_data *threads) |
static int | create_new_client (struct test_client *client, caps_identifier pr_id) |
static int | print_printer_provider_info (struct test_client *client, caps_identifier printer_id) |
static void | notify_thread_about_provider_change (struct thread_data *threads, caps_identifier pr_id) |
static int | notifier_provider_change (void *data, caps_identifier pr_id, struct caps_cl_printer_state *pstate) |
static void | notify_thread_about_job_change (struct thread_data *threads, caps_identifier job_id) |
static int | notifier_job_change (void *data, caps_identifier pr_id, caps_identifier job_id, struct caps_cl_job_state *jstate, struct caps_job_progression *jprogression) |
int | main (void) |
Variables | |
static volatile sig_atomic_t | quit = 0 |
static caps_identifier | pr_id = CAPS_INVALID_IDENTIFIER |
static struct thread_data | threads [10] |
static const char | file_header [] |
static const struct caps_cl_notifier | client_notifier |
This application is mostly intended for testing purposes.
#define THREAD_ARRAY_SIZE 10 |
void sig_handler | ( | int | sig | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int main | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |