You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
1.1 KiB

/*
Copyright Jeroen Vreeken (jeroen@vreeken.net), 2017
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
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _INCLUDE_CCS7DB_H_
#define _INCLUDE_CCS7DB_H_
#include <stdint.h>
struct ccs7db;
struct ccs7db *ccs7db_create(void);
void ccs7db_destroy(struct ccs7db *db);
int ccs7db_csv_load(struct ccs7db *db, const char *filename);
int ccs7db_id2mac(struct ccs7db *db, uint8_t mac[6], const unsigned long id);
int ccs7db_mac2id(struct ccs7db *db, unsigned long *id, const uint8_t mac[6]);
#endif /* _INCLUDE_CCS7DB_H_ */