yacos/client/src/scanner.h

33 lines
653 B
C
Raw Normal View History

2019-07-23 18:33:44 +02:00
#ifndef SCANNER_H
#define SCANNER_H
#include <glib-object.h>
#include <nfc/nfc.h>
2019-07-23 18:33:44 +02:00
G_BEGIN_DECLS
#define YACOS_TYPE_SCANNER yacos_scanner_get_type()
G_DECLARE_FINAL_TYPE(YacosScanner, yacos_scanner, YACOS, SCANNER, GObject)
YacosScanner *yacos_scanner_new(void);
2019-07-24 20:22:10 +02:00
typedef uint32_t yacos_tag_id;
2019-07-23 22:10:22 +02:00
enum YACOS_SCANNER_TAG_TYPE {
TAG_TYPE_NONE = 0,
TAG_TYPE_ITEM,
TAG_TYPE_ID
};
struct yacos_scanner_tag {
2019-07-24 20:22:10 +02:00
yacos_tag_id tag_id; // TODO: Maybe make this a uint64
2019-07-23 22:10:22 +02:00
enum YACOS_SCANNER_TAG_TYPE tag_type;
};
2019-07-24 20:22:10 +02:00
gchar *yacos_tag_id_to_str(yacos_tag_id tag_id);
2019-07-24 21:19:26 +02:00
GList *yacos_scanner_get_present_tags(YacosScanner *scanner);
2019-07-24 20:22:10 +02:00
2019-07-23 18:33:44 +02:00
G_END_DECLS
#endif // SCANNER_H