1
1
/*
2
- * Copyright © 2013-2020 Inria. All rights reserved.
2
+ * Copyright © 2013-2023 Inria. All rights reserved.
3
3
* See COPYING in top-level directory.
4
4
*/
5
5
@@ -222,6 +222,8 @@ enum hwloc_topology_diff_apply_flags_e {
222
222
HWLOC_DECLSPEC int hwloc_topology_diff_apply (hwloc_topology_t topology , hwloc_topology_diff_t diff , unsigned long flags );
223
223
224
224
/** \brief Destroy a list of topology differences.
225
+ *
226
+ * \return 0.
225
227
*/
226
228
HWLOC_DECLSPEC int hwloc_topology_diff_destroy (hwloc_topology_diff_t diff );
227
229
@@ -233,6 +235,8 @@ HWLOC_DECLSPEC int hwloc_topology_diff_destroy(hwloc_topology_diff_t diff);
233
235
* This identifier is usually the name of the other XML file
234
236
* that contains the reference topology.
235
237
*
238
+ * \return 0 on success, -1 on error.
239
+ *
236
240
* \note the pointer returned in refname should later be freed
237
241
* by the caller.
238
242
*/
@@ -246,6 +250,8 @@ HWLOC_DECLSPEC int hwloc_topology_diff_load_xml(const char *xmlpath, hwloc_topol
246
250
* This identifier is usually the name of the other XML file
247
251
* that contains the reference topology.
248
252
* This attribute is given back when reading the diff from XML.
253
+ *
254
+ * \return 0 on success, -1 on error.
249
255
*/
250
256
HWLOC_DECLSPEC int hwloc_topology_diff_export_xml (hwloc_topology_diff_t diff , const char * refname , const char * xmlpath );
251
257
@@ -257,6 +263,8 @@ HWLOC_DECLSPEC int hwloc_topology_diff_export_xml(hwloc_topology_diff_t diff, co
257
263
* This identifier is usually the name of the other XML file
258
264
* that contains the reference topology.
259
265
*
266
+ * \return 0 on success, -1 on error.
267
+ *
260
268
* \note the pointer returned in refname should later be freed
261
269
* by the caller.
262
270
*/
@@ -274,6 +282,8 @@ HWLOC_DECLSPEC int hwloc_topology_diff_load_xmlbuffer(const char *xmlbuffer, int
274
282
* The returned buffer ends with a \0 that is included in the returned
275
283
* length.
276
284
*
285
+ * \return 0 on success, -1 on error.
286
+ *
277
287
* \note The XML buffer should later be freed with hwloc_free_xmlbuffer().
278
288
*/
279
289
HWLOC_DECLSPEC int hwloc_topology_diff_export_xmlbuffer (hwloc_topology_diff_t diff , const char * refname , char * * xmlbuffer , int * buflen );
0 commit comments