source: trunk/module-cccshare.h @ 5375

Last change on this file since 5375 was 5245, checked in by schlocke, 8 years ago

modularization: CCCAM (MODULE_CCCAM) and LOADBALANCER (WITH_LB) could be
removed with config.sh

File size: 1.1 KB
Line 
1#include "globals.h"
2#ifdef MODULE_CCCAM
3/*
4* module-cccshare.h
5*
6*  Created on: 26.02.2011
7*      Author: schlocke
8*/
9#ifndef MODULECCCSHARE_H_
10#define MODULECCCSHARE_H_
11   
12#include <string.h>
13#include <stdlib.h>
14#include "module-cccam.h"
15#include <time.h>
16#include "reader-common.h"
17#include <poll.h>
18
19
20void init_share();
21void done_share();
22void add_share(struct cc_card *card);
23void remove_share(struct cc_card *card);
24
25LLIST *get_and_lock_sharelist();
26void unlock_sharelist();
27void refresh_shares();
28                       
29int32_t chk_ident(FTAB *ftab, struct cc_card *card);
30int32_t card_valid_for_client(struct s_client *cl, struct cc_card *card);
31
32int32_t cc_clear_reported_carddata(LLIST *reported_carddatas, LLIST *except,
33                int32_t send_removed);
34int32_t cc_free_reported_carddata(LLIST *reported_carddatas, LLIST *except,
35                int32_t send_removed);
36
37int32_t send_card_to_clients(struct cc_card *card, struct s_client *one_client);
38void send_remove_card_to_clients(struct cc_card *card);
39
40int32_t cc_srv_report_cards(struct s_client *cl);
41
42void sort_cards_by_hop(LLIST *cards, int32_t reverse);
43#endif /* MODULECCCSHARE_H_ */
44#endif
Note: See TracBrowser for help on using the repository browser.