X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afs.h;h=a596317f957f2dabb8a7287d689810883f4270b6;hp=ad9bfc86fb46edb3c37f0ac9906b9db5b7559d5a;hb=6442f07bb08eb6e557086587f997b1785ea18ef7;hpb=49bd626084bf5f48e4d80075258b6da4703752cf diff --git a/afs.h b/afs.h index ad9bfc86..a596317f 100644 --- a/afs.h +++ b/afs.h @@ -24,6 +24,8 @@ struct afs_info { uint32_t lyrics_id; /** Mp3, ogg or aac. */ uint8_t audio_format_id; + /** Amplification value. */ + uint8_t amp; }; /** @@ -159,7 +161,7 @@ struct pattern_match_data { int (*action)(struct osl_table *table, struct osl_row *row, const char *name, void *data); }; -/* afs */ + /** * Afs command handlers run as a process which is not related to the afs * process, i.e. they can not change the address space of afs directly. @@ -169,9 +171,17 @@ struct pattern_match_data { * \sa send_callback_request(). */ typedef void callback_function(int fd, const struct osl_object *); + +/** + * Callbacks send chunks to data back to the command handler. Pointers to + * this type of function are used by \ref send_callback_request and friends + * to deal with the data in the command handler process. + * + * \sa \ref send_callback_request(). + */ typedef int callback_result_handler(struct osl_object *result, void *private); -int send_result(struct osl_object *result, void *private_result_data); -int pass_buffer_as_shm(char *buf, size_t size, void *private_data); +int send_result(struct osl_object *result, void *fd_ptr); +int pass_buffer_as_shm(char *buf, size_t size, void *fd_ptr); __noreturn void afs_init(uint32_t cookie, int socket_fd); void afs_event(enum afs_events event, struct para_buffer *pb,