X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Ftypes.h;h=8bd01027c4cc505ecab3c13ad2748b289dc8b663;hb=9426d563f74aed0b0f32818d4ef535cdfacdb167;hp=c1916a4d75b76b7557031e2ca1a96b6febaa1115;hpb=fef3bf22431390dae389d378b7709366b158b83d;p=babeltrace.git diff --git a/include/babeltrace/ctf/types.h b/include/babeltrace/ctf/types.h index c1916a4d..8bd01027 100644 --- a/include/babeltrace/ctf/types.h +++ b/include/babeltrace/ctf/types.h @@ -17,6 +17,14 @@ * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. */ #include @@ -82,25 +90,39 @@ struct ctf_stream_pos *ctf_pos(struct stream_pos *pos) return container_of(pos, struct ctf_stream_pos, parent); } +BT_HIDDEN int ctf_integer_read(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_integer_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_float_read(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_float_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_string_read(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_string_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_enum_read(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_enum_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_struct_rw(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_variant_rw(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_array_read(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_array_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_sequence_read(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_sequence_write(struct stream_pos *pos, struct definition *definition); void ctf_packet_seek(struct stream_pos *pos, size_t index, int whence); -void ctf_init_pos(struct ctf_stream_pos *pos, int fd, int open_flags); -void ctf_fini_pos(struct ctf_stream_pos *pos); +int ctf_init_pos(struct ctf_stream_pos *pos, int fd, int open_flags); +int ctf_fini_pos(struct ctf_stream_pos *pos); /* * move_pos - move position of a relative bit offset