<commit_before>/** @file
    @brief Header

    Must be c-safe!

    @date 2014

    @author
    <NAME>
    <<EMAIL>>
    <http://sensics.com>
*/

/*
// Copyright 2014 Sensics, Inc.
//
// All rights reserved.
//
// (Final version intended to be licensed under
// the Apache License, Version 2.0)
*/

#ifndef INCLUDED_InterfaceCallbacksC_h_GUID_8F16E6CB_F998_4ABC_5B6B_4FC1E4B71BC9
#define INCLUDED_InterfaceCallbacksC_h_GUID_8F16E6CB_F998_4ABC_5B6B_4FC1E4B71BC9

/* Internal Includes */
#include <osvr/ClientKit/Export.h>
#include <osvr/Util/APIBaseC.h>
#include <osvr/Util/ReturnCodesC.h>
#include <osvr/Util/AnnotationMacrosC.h>
#include <osvr/Util/ClientOpaqueTypesC.h>
#include <osvr/Util/ClientCallbackTypesC.h>

/* Library/third-party includes */
/* none */

/* Standard includes */
/* none */

OSVR_EXTERN_C_BEGIN

OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
    osvrRegisterPoseCallback(OSVR_ClientInterface iface, OSVR_PoseCallback cb,
                             void *userdata);

OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
    osvrRegisterPositionCallback(OSVR_ClientInterface iface,
                                 OSVR_PositionCallback cb, void *userdata);

OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
    osvrRegisterOrientationCallback(OSVR_ClientInterface iface,
                                    OSVR_OrientationCallback cb,
                                    void *userdata);
OSVR_EXTERN_C_END

#endif<commit_msg>Use macro for the header too.<commit_after>/** @file
    @brief Header

    Must be c-safe!

    @date 2014

    @author
    <NAME>
    <<EMAIL>>
    <http://sensics.com>
*/

/*
// Copyright 2014 Sensics, Inc.
//
// All rights reserved.
//
// (Final version intended to be licensed under
// the Apache License, Version 2.0)
*/

#ifndef INCLUDED_InterfaceCallbacksC_h_GUID_8F16E6CB_F998_4ABC_5B6B_4FC1E4B71BC9
#define INCLUDED_InterfaceCallbacksC_h_GUID_8F16E6CB_F998_4ABC_5B6B_4FC1E4B71BC9

/* Internal Includes */
#include <osvr/ClientKit/Export.h>
#include <osvr/Util/APIBaseC.h>
#include <osvr/Util/ReturnCodesC.h>
#include <osvr/Util/AnnotationMacrosC.h>
#include <osvr/Util/ClientOpaqueTypesC.h>
#include <osvr/Util/ClientCallbackTypesC.h>

/* Library/third-party includes */
/* none */

/* Standard includes */
/* none */

OSVR_EXTERN_C_BEGIN

#define OSVR_CALLBACK_METHODS(TYPE)                                            \
    /** @brief Register a callback for TYPE reports on an interface */         \
    OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrRegister##TYPE##Callback(        \
        OSVR_ClientInterface iface, OSVR_##TYPE##Callback cb, void *userdata);

OSVR_CALLBACK_METHODS(Pose)
OSVR_CALLBACK_METHODS(Position)
OSVR_CALLBACK_METHODS(Orientation)

#undef OSVR_CALLBACK_METHODS

OSVR_EXTERN_C_END

#endif
{'fraction_non_alphanumeric': 0.0991615020051039, 'fraction_numerical': 0.03062340503098797, 'mean_word_length': 3.3555555555555556, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4027713', 'n_tokens_mistral': 1029, 'n_tokens_neox': 971, 'n_words': 172}