Stefan Schuermans
update copyright year
Stefan Schuermans commited 4ef7955 at 2017-05-20 16:55:59
/*
* EtherPix library
*
* Copyright 2010-2017 Stefan Schuermans <stefan schuermans info>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ETP_CONFIG_H
#define ETP_CONFIG_H
#include <etherpix/msg.h>
#include <etherpix/types.h>
#include <intern/types.h>
/** context information for processing config file */
typedef struct etp_config_ctx_s
{
etp_display_t *p_display; /**< display to configure */
unsigned int line_no; /**< current line in config file */
etp_msg_func_p_t p_msg_func; /**< message callback function or NULL */
void *p_msg_ctx; /**< user context for message callback */
} etp_config_ctx_t;
/**
* \brief process distributor from config file
*
* \param[in,out] p_ctx context information
* \param[in] p_setting_part2 second half of setting to process
* \param[in] p_value value of setting
* \return 0 in case of success, -1 in case of error
*/
int etp_config_proc_distri(etp_config_ctx_t *p_ctx, char *p_setting_part2,
char *value);
/**
* \brief process mapping from config file
*
* \param[in,out] p_ctx context information
* \param[in] p_setting_part2 second half of setting to process
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX