These types are going to be used in signatures of functions that take
print_*time* functions as parameters.
* defs.h (print_obj_by_addr_fn, sprint_obj_by_addr_fn): New types.
* desc.c (decode_select): Use them.
unsigned int size, void *dest);
typedef bool (*print_fn)(struct tcb *, void *elem_buf,
size_t elem_size, void *opaque_data);
+typedef int (*print_obj_by_addr_fn)(struct tcb *, kernel_ulong_t);
+typedef const char * (*sprint_obj_by_addr_fn)(struct tcb *, kernel_ulong_t);
/**
static int
decode_select(struct tcb *const tcp, const kernel_ulong_t *const args,
- int (*const print_tv_ts) (struct tcb *, kernel_ulong_t),
- const char * (*const sprint_tv_ts) (struct tcb *, kernel_ulong_t))
+ const print_obj_by_addr_fn print_tv_ts,
+ const sprint_obj_by_addr_fn sprint_tv_ts)
{
int i, j;
int nfds, fdsize;