Blame pqos/profiles.h

Packit bcb633
/*
Packit bcb633
 * BSD LICENSE
Packit bcb633
 *
Packit bcb633
 * Copyright(c) 2014-2015 Intel Corporation. All rights reserved.
Packit bcb633
 * All rights reserved.
Packit bcb633
 *
Packit bcb633
 * Redistribution and use in source and binary forms, with or without
Packit bcb633
 * modification, are permitted provided that the following conditions
Packit bcb633
 * are met:
Packit bcb633
 *
Packit bcb633
 *   * Redistributions of source code must retain the above copyright
Packit bcb633
 *     notice, this list of conditions and the following disclaimer.
Packit bcb633
 *   * Redistributions in binary form must reproduce the above copyright
Packit bcb633
 *     notice, this list of conditions and the following disclaimer in
Packit bcb633
 *     the documentation and/or other materials provided with the
Packit bcb633
 *     distribution.
Packit bcb633
 *   * Neither the name of Intel Corporation nor the names of its
Packit bcb633
 *     contributors may be used to endorse or promote products derived
Packit bcb633
 *     from this software without specific prior written permission.
Packit bcb633
 *
Packit bcb633
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit bcb633
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit bcb633
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit bcb633
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Packit bcb633
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Packit bcb633
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Packit bcb633
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit bcb633
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit bcb633
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit bcb633
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit bcb633
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit bcb633
 */
Packit bcb633
Packit bcb633
/**
Packit bcb633
 * Allocation profiles API
Packit bcb633
 */
Packit bcb633
Packit bcb633
#include <stdint.h>
Packit bcb633
#include <stdio.h>
Packit bcb633
#include "pqos.h"
Packit bcb633
Packit bcb633
#ifndef __PROFILES_H__
Packit bcb633
#define __PROFILES_H__
Packit bcb633
Packit bcb633
#ifdef __cplusplus
Packit bcb633
extern "C" {
Packit bcb633
#endif
Packit bcb633
Packit bcb633
/**
Packit bcb633
 * @brief Prints list of supported L3CA profiles to STDOUT
Packit bcb633
 *
Packit bcb633
 * @param [in] fp file stream to write profile descriptions to
Packit bcb633
 */
Packit bcb633
void profile_l3ca_list(FILE *fp);
Packit bcb633
Packit bcb633
/**
Packit bcb633
 * @brief Applies selected profile via selfn_allocation_class()
Packit bcb633
 *
Packit bcb633
 * @param [in] name of the profile
Packit bcb633
 * @param [in] l3ca L3CA capability structure
Packit bcb633
 *
Packit bcb633
 * @return Operations status
Packit bcb633
 * @retval 0 OK
Packit bcb633
 * @retval -1 error
Packit bcb633
 */
Packit bcb633
int profile_l3ca_apply(const char *name,
Packit bcb633
                       const struct pqos_capability *cap_l3ca);
Packit bcb633
Packit bcb633
Packit bcb633
#ifdef __cplusplus
Packit bcb633
}
Packit bcb633
#endif
Packit bcb633
Packit bcb633
#endif /* __PROFILES_H__ */