Skip to content

Commit

Permalink
Update osdp_common.h
Browse files Browse the repository at this point in the history
Added Prototypes for implicitly declared functions
  • Loading branch information
X-627 committed Jun 7, 2023
1 parent 35cd5ca commit eb078e6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/osdp_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,16 @@ uint8_t *osdp_phy_packet_get_smb(struct osdp_pd *p, const uint8_t *buf);
int osdp_phy_send_packet(struct osdp_pd *pd, uint8_t *buf,
int len, int max_len);

//ADDED PROTOTYPES for implicitly declared functions
int osdp_channel_receive(struct osdp_pd *pd);
int get_tx_buf_size(struct osdp_pd *pd);
int osdp_phy_send_packet(struct osdp_pd *pd, const uint8_t *buf, int len, int buf_size);
int phy_check_header(struct osdp_pd *pd);
int osdp_rb_pop_buf(struct osdp_rb *rb, const uint8_t *max_len, int min_len); //Note: probably needs more useful variable names
int phy_check_packet(struct osdp_pd *pd, const uint8_t *buf, int len);



/* from osdp_common.c */
__weak int64_t osdp_millis_now(void);
int64_t osdp_millis_since(int64_t last);
Expand Down

0 comments on commit eb078e6

Please sign in to comment.