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 <stdlib.h>
#include <string.h>
#include <etherpix/display.h>
#include <etherpix/msg.h>
#include <etherpix/types.h>
#include "config.h"
#include "constants.h"
#include "net.h"
#include "types.h"
/**
* \brief create a new EtherPix display
*
* \param[in] sz_config_file name of config file to read
* \param[in] p_msg_func message callback function or NULL
* \param[in] p_msg_ctx user context for message callback
* \return pointer to new EtherPix display on success
* or NULL on error
*/
etp_display_t *etp_display_create(const char *sz_config_file,
etp_msg_func_p_t p_msg_func,
void *p_msg_ctx)
{
etp_display_t *p_display;
/* basic display setup */
/* create display structure */
p_display = (etp_display_t *)calloc(1, sizeof (etp_display_t));
if (!p_display) {
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX