Stefan Schuermans
add support for monochrome distributors
Stefan Schuermans commited 6d5ec0e at 2018-08-14 19:31:25
/*
* 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/>.
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <etherpix/msg.h>
#include <etherpix/types.h>
#include "const_data.h"
#include "constants.h"
#include "config.h"
#include "mapping.h"
#include "missing.h"
#include "net.h"
#include "parse.h"
#include "strtod_noloc.h"
#include "types.h"
/**
* \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 *p_value)
{
char *ptr;
unsigned long val;
unsigned int distri, out, pix, i;
etp_distri_t *p_distri;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX