]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Minor changes to define MAXLENGTH constants for label strings.
authortelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 20 Mar 2007 18:34:47 +0000 (18:34 +0000)
committertelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 20 Mar 2007 18:34:47 +0000 (18:34 +0000)
git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@359 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_core_types.h
frsh_shared_objects.h
frsh_shared_objects_types.h

index d7f117f559246ce23d87ef254fc8a08273fa705a..c9d53a0558e5188804a41e7017bc2b7546a9a3da 100644 (file)
@@ -151,7 +151,7 @@ typedef int frsh_resource_id_t;
 typedef enum {FRSH_CT_REGULAR, FRSH_CT_BACKGROUND, FRSH_CT_DUMMY} frsh_contract_type_t;
 
 #define CONTRACT_LABEL_MAXLENGTH 15
-typedef char frsh_contract_label_t[CONTRACT_LABEL_MAXLENGTH];
+typedef char frsh_contract_label_t[CONTRACT_LABEL_MAXLENGTH + 1];
 
 /** 
  *  Contract parameters type; it is an opaque type (i.e. the internal
index 5a9b9133884d2b143739aece16866a90c3a8d580..e2947a0ea4f39d2f70126c42b76a940c58b94c87 100644 (file)
  * exists, the function fails. The object is created according to the
  * kind of object (protected or unprotected) specified by obj_kind
  *
- * @param[in] obj_label  Label defined by the application.
+ * @param[in] obj_label  Label defined by the application.  Char * for
+ *                       a string of SHAREDOBJ_LABEL_MAXLENGTH
+ *                       characters (+ null terminating \0).
  *
  * @param[in] obj_kind  Whether it is protected or unprotected.
  *
@@ -227,7 +229,8 @@ int frsh_sharedobj_init
  * obj_handle. Otherwise, an error code is returned by the function. 
  *
  * @param[in] obj_label  Defined by the application at object creation
- *                    time.
+ *                    time. Char * for a string of SHAREDOBJ_LABEL_MAXLENGTH
+ *                       characters (+ null terminating \0).
  *
  * @param[out] obj_handle Placeholder for the object handle.
  *
index f2b7f0fb1abecb370f2def9de32c89ffa57403fe..669928f1cd9235c41358e763571836a841956867 100644 (file)
 typedef FRSH_SHAREDOBJ_HANDLE_T_OPAQUE  frsh_sharedobj_handle_t; 
 
 
+#define SHAREDOBJ_LABEL_MAXLENGTH 15
+typedef char frsh_sharedobj_label_t[CONTRACT_LABEL_MAXLENGTH + 1];
+
+
+
 /**
  * Kind of shared object protected or unprotected
  */