#include "globals.h" #ifdef MODULE_CCCAM #ifdef MODULE_CCCSHARE /* * module-cccshare.h * * Created on: 26.02.2011 * Author: schlocke */ #ifndef MODULECCCSHARE_H_ #define MODULECCCSHARE_H_ #include #include #include "module-cccam.h" #include #include "reader-common.h" #include #define CAID_KEY 0x20 void init_share(); void done_share(); void add_share(struct cc_card *card); void remove_share(struct cc_card *card); LLIST **get_and_lock_sharelist(); void unlock_sharelist(); void refresh_shares(); int32_t chk_ident(FTAB *ftab, struct cc_card *card); int32_t card_valid_for_client(struct s_client *cl, struct cc_card *card); int32_t cc_clear_reported_carddata(LLIST *reported_carddatas, LLIST *except, int32_t send_removed); int32_t cc_free_reported_carddata(LLIST *reported_carddatas, LLIST *except, int32_t send_removed); int32_t send_card_to_clients(struct cc_card *card, struct s_client *one_client); void send_remove_card_to_clients(struct cc_card *card); int32_t cc_srv_report_cards(struct s_client *cl); LLIST *get_cardlist(uint16_t caid, LLIST **list); struct cc_card **get_sorted_card_copy(LLIST *cards, int32_t reverse, int32_t *size); #endif /* MODULECCCSHARE_H_ */ #endif #endif