mirror of
https://github.com/opnsense/src.git
synced 2026-03-28 21:53:16 -04:00
- addition of --libxo colors=xxxxx color map (so I never see "blue") - fix bugs from -fsanitize=address and =undefined - utf-8 changes (remove support fore 6 byte utf-8 values, which are "historical") - add comments - fix man pages - update test cases Submitted by: phil Reviewed by: sjg Approved by: sjg (mentor)
30 lines
682 B
C
30 lines
682 B
C
/*
|
|
* Copyright (c) 2015, Juniper Networks, Inc.
|
|
* All rights reserved.
|
|
* This SOFTWARE is licensed under the LICENSE provided in the
|
|
* ../Copyright file. By downloading, installing, copying, or otherwise
|
|
* using the SOFTWARE, you agree to be bound by the terms of that
|
|
* LICENSE.
|
|
* Phil Shafer, August 2015
|
|
*/
|
|
|
|
#include "xo.h"
|
|
#include "xo_encoder.h"
|
|
|
|
static int
|
|
test_handler (XO_ENCODER_HANDLER_ARGS)
|
|
{
|
|
printf("op %s: [%s] [%s] [%#llx]\n", xo_encoder_op_name(op),
|
|
name ?: "", value ?: "", flags);
|
|
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
xo_encoder_library_init (XO_ENCODER_INIT_ARGS)
|
|
{
|
|
arg->xei_version = XO_ENCODER_VERSION;
|
|
arg->xei_handler = test_handler;
|
|
|
|
return 0;
|
|
}
|