X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=recv.h;fp=recv.h;h=573dccc9dfcb112e737d81a410973ea8abd0a326;hb=c79899fe6a1e8eb3086749f46c599d9790d99921;hp=7fb45286cd61b93fb88f3ac2a0936cbfea5a6dfd;hpb=101e1fd3252d838458a6ad4015f497818c54c897;p=paraslash.git diff --git a/recv.h b/recv.h index 7fb45286..573dccc9 100644 --- a/recv.h +++ b/recv.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2006 Andre Noll + * Copyright (C) 2005-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,6 +32,7 @@ struct receiver_node { void *private_data; /** set to 1 if end of file is reached */ int eof; + /** pointer to the eof member of the consumer */ int *output_eof; /** pointer to the configuration data for this instance */ void *conf; @@ -150,17 +151,19 @@ extern void ortp_recv_init(struct receiver *r); #define ORTP_RECEIVER #endif -void *check_receiver_arg(char *ra, int *receiver_num); - - extern struct receiver receivers[]; extern void (*crypt_function_recv)(unsigned long len, const unsigned char *indata, unsigned char *outdata); -extern void (*crypt_function_send)(unsigned long len, const unsigned char *indata, unsigned char *outdata); +/** \endcond */ +/** define an array of all available receivers */ #define DEFINE_RECEIVER_ARRAY struct receiver receivers[] = { \ HTTP_RECEIVER \ DCCP_RECEIVER \ ORTP_RECEIVER \ {.name = NULL}}; -/** \endcond */ +void *check_receiver_arg(char *ra, int *receiver_num); + + +extern void (*crypt_function_send)(unsigned long len, const unsigned char *indata, unsigned char *outdata); +