@@ -55,7 +55,7 @@ enum hwloc_topology_export_xml_flags_e {
55
55
*
56
56
* \p flags is a OR'ed set of ::hwloc_topology_export_xml_flags_e.
57
57
*
58
- * \return -1 if a failure occured .
58
+ * \return 0 on success, or -1 on error .
59
59
*
60
60
* \note See also hwloc_topology_set_userdata_export_callback()
61
61
* for exporting application-specific object userdata.
@@ -91,7 +91,7 @@ HWLOC_DECLSPEC int hwloc_topology_export_xml(hwloc_topology_t topology, const ch
91
91
*
92
92
* \p flags is a OR'ed set of ::hwloc_topology_export_xml_flags_e.
93
93
*
94
- * \return -1 if a failure occured .
94
+ * \return 0 on success, or -1 on error .
95
95
*
96
96
* \note See also hwloc_topology_set_userdata_export_callback()
97
97
* for exporting application-specific object userdata.
@@ -145,13 +145,15 @@ HWLOC_DECLSPEC void hwloc_topology_set_userdata_export_callback(hwloc_topology_t
145
145
* that were given to the export callback.
146
146
*
147
147
* Only printable characters may be exported to XML string attributes.
148
- * If a non-printable character is passed in \p name or \p buffer,
149
- * the function returns -1 with errno set to EINVAL.
150
148
*
151
149
* If exporting binary data, the application should first encode into
152
150
* printable characters only (or use hwloc_export_obj_userdata_base64()).
153
151
* It should also take care of portability issues if the export may
154
152
* be reimported on a different architecture.
153
+ *
154
+ * \return 0 on success.
155
+ * \return -1 with errno set to \c EINVAL if a non-printable character is
156
+ * passed in \p name or \b buffer.
155
157
*/
156
158
HWLOC_DECLSPEC int hwloc_export_obj_userdata (void * reserved , hwloc_topology_t topology , hwloc_obj_t obj , const char * name , const void * buffer , size_t length );
157
159
@@ -165,8 +167,14 @@ HWLOC_DECLSPEC int hwloc_export_obj_userdata(void *reserved, hwloc_topology_t to
165
167
* This function may only be called from within the export() callback passed
166
168
* to hwloc_topology_set_userdata_export_callback().
167
169
*
170
+ * The name must be made of printable characters for export to XML string attributes.
171
+ *
168
172
* The function does not take care of portability issues if the export
169
173
* may be reimported on a different architecture.
174
+ *
175
+ * \return 0 on success.
176
+ * \return -1 with errno set to \c EINVAL if a non-printable character is
177
+ * passed in \p name.
170
178
*/
171
179
HWLOC_DECLSPEC int hwloc_export_obj_userdata_base64 (void * reserved , hwloc_topology_t topology , hwloc_obj_t obj , const char * name , const void * buffer , size_t length );
172
180
0 commit comments