Permalink
Browse files

getting the uiUidLen

  • Loading branch information...
1 parent f6f04ca commit ac1cff786d5574a4077c8ecd2e6794dc5c02a837 @tenderlove committed Aug 8, 2009
Showing with 10 additions and 0 deletions.
  1. +10 −0 ext/nfc/nfc_iso14443a.c
@@ -2,7 +2,17 @@
VALUE cNfcISO14443A;
+static VALUE uiUidLen(VALUE self)
+{
+ tag_info_iso14443a * tag;
+ Data_Get_Struct(self, tag_info_iso14443a, tag);
+
+ return INT2NUM(tag->uiUidLen);
+}
+
void init_iso14443a()
{
cNfcISO14443A = rb_define_class_under(cNfc, "ISO14443A", rb_cObject);
+
+ rb_define_method(cNfcISO14443A, "uiUidLen", uiUidLen, 0);
}

0 comments on commit ac1cff7

Please sign in to comment.