/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
*     Copyright 2015 Couchbase, Inc
*
*   Licensed under the Apache License, Version 2.0 (the "License");
*   you may not use this file except in compliance with the License.
*   You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*   Unless required by applicable law or agreed to in writing, software
*   distributed under the License is distributed on an "AS IS" BASIS,
*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*   See the License for the specific language governing permissions and
*   limitations under the License.
*/

/*
 * memcached binary protocol packet validators
 */
#pragma once

#include <memcached/protocol_binary.h>

#ifdef __cplusplus
extern "C" {
#endif

    typedef protocol_binary_response_status (*mcbp_package_validate)(void *packet);

    /**
     * Get the memcached binary protocol validators
     *
     * @return the array of 0x100 entries for the package
     *         validators
     */
    mcbp_package_validate *get_mcbp_validators(void);

#ifdef __cplusplus
}
#endif

/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
*     Copyright 2015 Couchbase, Inc
*
*   Licensed under the Apache License, Version 2.0 (the "License");
*   you may not use this file except in compliance with the License.
*   You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*   Unless required by applicable law or agreed to in writing, software
*   distributed under the License is distributed on an "AS IS" BASIS,
*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*   See the License for the specific language governing permissions and
*   limitations under the License.
*/

/*
 * memcached binary protocol packet validators
 */
#pragma once

#include <memcached/protocol_binary.h>

typedef protocol_binary_response_status (*mcbp_package_validate)(void *packet);

/**
 * Get the memcached binary protocol validators
 *
 * @return the array of 0x100 entries for the package
 *         validators
 */
mcbp_package_validate *get_mcbp_validators(void);

Drop C linkage for message validators
Drop C linkage for message validators

Change-Id: I5a95a6ddd361ee2009ea399479a7df51733af709
Reviewed-on: http://review.couchbase.org/54979
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>
