wait.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef WAIT_H
00022 #define WAIT_H
00023
00024 #include "gpgme.h"
00025 #include "sema.h"
00026
00027 struct fd_table
00028 {
00029 struct io_select_fd_s *fds;
00030 size_t size;
00031 };
00032 typedef struct fd_table *fd_table_t;
00033
00034
00035
00036 struct wait_item_s
00037 {
00038 gpgme_ctx_t ctx;
00039 gpgme_io_cb_t handler;
00040 void *handler_value;
00041 int dir;
00042 };
00043
00044
00045
00046 struct tag
00047 {
00048
00049 gpgme_ctx_t ctx;
00050
00051
00052 int idx;
00053
00054
00055 void *user_tag;
00056 };
00057
00058
00059 void _gpgme_fd_table_init (fd_table_t fdt);
00060 void _gpgme_fd_table_deinit (fd_table_t fdt);
00061
00062 gpgme_error_t _gpgme_add_io_cb (void *data, int fd, int dir,
00063 gpgme_io_cb_t fnc, void *fnc_data, void **r_tag);
00064 void _gpgme_remove_io_cb (void *tag);
00065 void _gpgme_wait_private_event_cb (void *data, gpgme_event_io_t type,
00066 void *type_data);
00067 void _gpgme_wait_global_event_cb (void *data, gpgme_event_io_t type,
00068 void *type_data);
00069
00070 gpgme_error_t _gpgme_wait_user_add_io_cb (void *data, int fd, int dir,
00071 gpgme_io_cb_t fnc, void *fnc_data,
00072 void **r_tag);
00073 void _gpgme_wait_user_remove_io_cb (void *tag);
00074 void _gpgme_wait_user_event_cb (void *data, gpgme_event_io_t type,
00075 void *type_data);
00076
00077 gpgme_error_t _gpgme_wait_one (gpgme_ctx_t ctx);
00078
00079 #endif
This file is part of the documentation for libkdenetwork Library Version 3.3.2.