-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmain.h
More file actions
44 lines (36 loc) · 1.98 KB
/
main.h
File metadata and controls
44 lines (36 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#if 0
#
# Copyright (c) 2014 - 2015 Javier Sayago <admin@lonasdigital.com>
# Contact: javilonas@esp-desarrolladores.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#endif
void cs_disconnect_cli(struct cs_client_data *cli);
int32_t cs_connect_cli(int32_t sock, uint32 ip);
void cs_senddcw_cli(struct cs_client_data *cli); // msgid is stored into ecm
void cs_getclimsg();
void cs_disconnect_srv(struct cs_server_data *srv);
int32_t cs_connect_srv(struct cs_server_data *cs);
void cs_sendecm_srv(struct cs_server_data *srv, unsigned int msgid, ECM_DATA *ecm);
void cs_getsrvmsg();
int32_t cmp_cards( struct cs_card_data* card1, struct cs_card_data* card2);
struct cs_card_data *srv_findcard( struct cs_server_data *srv, struct cardserver_data *cs, uint16 ecmcaid, uint32 ecmprov);
void srv_cstatadd( struct cs_server_data *srv, int32_t csid, int32_t ok); //, int ecmoktime)
int32_t sidata_getval(struct cs_server_data *srv, struct cardserver_data *cs, uint16 caid, uint32 prov, uint16 sid, struct cs_card_data **selcard );
void sidata_add(struct cs_server_data *srv, uint8 *nodeid, uint16 caid, uint32 prov, uint16 sid,int32_t val);
int32_t sidata_update(struct cs_server_data *srv, struct cardserver_data *cs, uint16 caid, uint32 prov, uint16 sid,int32_t val);
struct cardserver_data *getcsbycaidprov( uint16 caid, uint32 prov);
struct cardserver_data *getcsbyid(uint32 id);
struct cardserver_data *getcsbyport(int32_t port);
struct cs_card_data *srv_check_card( struct cs_server_data *srv, uint16 caid, uint32 prov );