Enhanced the object API with optional functions.

This commit is contained in:
skarg
2009-08-29 20:26:32 +00:00
parent 10e7ad99b4
commit 2ee60ea8b3
3 changed files with 35 additions and 7 deletions
+2 -1
View File
@@ -67,6 +67,7 @@ static const int Properties_Required[] = {
static const int Properties_Optional[] = {
PROP_DESCRIPTION,
PROP_STATE_TEXT,
-1
};
@@ -399,7 +400,7 @@ int Multistate_Input_Encode_Property_APDU(
characterstring_init_ansi(&char_string,
Multistate_Input_State_Text(object_instance, i));
/* FIXME: this might go beyond MAX_APDU length! */
apdu_len = encode_application_character_string(
len = encode_application_character_string(
&apdu[apdu_len],
&char_string);
/* add it if we have room */