option.h File Reference

This file includes library level options. More...

#include <stdbool.h>
#include "platform.h"
Include dependency graph for option.h:

Go to the source code of this file.

Enumerations

enum  ast_library_option_t { AST_OPTION_DEFAULT = 0x00 , AST_OPTION_INDRA_CSDP = 0x01 , AST_OPTION_EMPTY_FSPEC = 0x02 }
 Library Option. More...

Functions

void ast_library_set_option (const ast_library_option_t opt)
 Set library level option.
void ast_library_unset_option (const ast_library_option_t opt)
 Unset library level option.
void ast_library_reset_option (void)
 Reset library level option.
bool ast_library_test_option (const ast_library_option_t opt)
 Test library level option.

Detailed Description

This file includes library level options.

Enumeration Type Documentation

◆ ast_library_option_t

Library Option.

Enumerator
AST_OPTION_DEFAULT 
AST_OPTION_INDRA_CSDP 

Indra CSDP has a bug to output longitude with opposite sign (positive vs negative).

Enabling this option will decode I062/105 dataitem correctly when CSDP is used. Note: this bug is reported solved in new CSDP version, this option is kept for backward compatibility reason

AST_OPTION_EMPTY_FSPEC 

Empty FSPEC means a FSPEC with zero bit set.

By default empty FSPEC is not allowed and will cause FSPEC decoding failure. Enabling this option will decode empty FSPEC with success.

Function Documentation

◆ ast_library_reset_option()

void ast_library_reset_option ( void )

Reset library level option.

◆ ast_library_set_option()

void ast_library_set_option ( const ast_library_option_t opt)

Set library level option.

◆ ast_library_test_option()

bool ast_library_test_option ( const ast_library_option_t opt)

Test library level option.

◆ ast_library_unset_option()

void ast_library_unset_option ( const ast_library_option_t opt)

Unset library level option.