# HG changeset patch # User baghdadi # Date 1110394348 0 # Node ID e6c449f89a5f5219ca0be456e7a2ec29bd50bf9f # Parent 62164c30ab9bf53f74804b57c1859ac7d4a7006d *** empty log message *** diff --git a/libsrc2/doc/minc_20.tex b/libsrc2/doc/minc_20.tex --- a/libsrc2/doc/minc_20.tex +++ b/libsrc2/doc/minc_20.tex @@ -2731,7 +2731,7 @@ \begin{verbatim} NAME -micreate_volume_image - +micreate_volume_image - create the actual image data for volume. SYNOPSIS @@ -2803,6 +2803,27 @@ MI_NOERROR if the call succeeds, or MI_ERROR if an error is detected. \end{verbatim} +\subsection{miget\_volume\_voxel\_count} +\begin{verbatim} +NAME + +miget_volume_voxel_count - get the number of voxels in the volume. +SYNOPSIS + +#include + +int miget_volume_voxel_count ( mihandle_t volume, + int *number_of_voxels ); + +DESCRIPTION + +This function returns the number of voxels in the volume. + +RETURN VALUE + +MI_NOERROR if the call succeeds, or MI_ERROR if an error is detected. +\end{verbatim} + \subsection{miopen\_volume} \begin{verbatim} NAME diff --git a/libsrc2/test/grpattr-test.c b/libsrc2/test/grpattr-test.c --- a/libsrc2/test/grpattr-test.c +++ b/libsrc2/test/grpattr-test.c @@ -217,36 +217,33 @@ TESTRPT("miget_attr_values failed", 0); } - { - char pathbuf[256]; - char namebuf[256]; - int count=0; - r = milist_start(hvol, "/", 1, &hlist); - if (r == MI_NOERROR) { - count++; - while (milist_attr_next(hvol, hlist, pathbuf, sizeof(pathbuf), - namebuf, sizeof(namebuf)) == MI_NOERROR) { - printf(" %s %s\n", pathbuf, namebuf); - } - } - milist_finish(hlist); - - printf("***************** \n"); - - char pathbuf1[256]; - - r = milist_start(hvol, "/", 1, &h1list); - if (r == MI_NOERROR) { - while( milist_grp_next(h1list, pathbuf1, sizeof(pathbuf1)) == MI_NOERROR) { - printf("%s \n", pathbuf1); - } - - } + char pathbuf[256]; + char namebuf[256]; + int count=0; + r = milist_start(hvol, "/", 1, &hlist); + if (r == MI_NOERROR) { + count++; + while (milist_attr_next(hvol, hlist, pathbuf, sizeof(pathbuf), + namebuf, sizeof(namebuf)) == MI_NOERROR) { + printf(" %s %s\n", pathbuf, namebuf); + } + } + milist_finish(hlist); + + printf("***************** \n"); + + char pathbuf1[256]; + + r = milist_start(hvol, "/", 1, &h1list); + if (r == MI_NOERROR) { + while( milist_grp_next(h1list, pathbuf1, sizeof(pathbuf1)) == MI_NOERROR) { + printf("%s \n", pathbuf1); + } + + } + + milist_finish(h1list); - milist_finish(h1list); - - } - miclose_volume(hvol); if (error_cnt != 0) {