Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hctsai1006 authored Sep 19, 2024
1 parent 4fba012 commit f8bad1e
Show file tree
Hide file tree
Showing 49 changed files with 2,662 additions and 0 deletions.
47 changes: 47 additions & 0 deletions e2sm/headers/AMF-UE-NGAP-ID.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-COMMON-IEs"
* found in "e2sm2_0.asn"
* `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -no-gen-example -gen-APER`
*/

#ifndef _AMF_UE_NGAP_ID_H_
#define _AMF_UE_NGAP_ID_H_


#include "asn_application.h"

/* Including external dependencies */
#include "INTEGER.h"

#ifdef __cplusplus
extern "C" {
#endif

/* AMF-UE-NGAP-ID */
typedef INTEGER_t AMF_UE_NGAP_ID_t;

/* Implementation */
extern asn_per_constraints_t asn_PER_type_AMF_UE_NGAP_ID_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_AMF_UE_NGAP_ID;
asn_struct_free_f AMF_UE_NGAP_ID_free;
asn_struct_print_f AMF_UE_NGAP_ID_print;
asn_constr_check_f AMF_UE_NGAP_ID_constraint;
ber_type_decoder_f AMF_UE_NGAP_ID_decode_ber;
der_type_encoder_f AMF_UE_NGAP_ID_encode_der;
xer_type_decoder_f AMF_UE_NGAP_ID_decode_xer;
xer_type_encoder_f AMF_UE_NGAP_ID_encode_xer;
jer_type_encoder_f AMF_UE_NGAP_ID_encode_jer;
oer_type_decoder_f AMF_UE_NGAP_ID_decode_oer;
oer_type_encoder_f AMF_UE_NGAP_ID_encode_oer;
per_type_decoder_f AMF_UE_NGAP_ID_decode_uper;
per_type_encoder_f AMF_UE_NGAP_ID_encode_uper;
per_type_decoder_f AMF_UE_NGAP_ID_decode_aper;
per_type_encoder_f AMF_UE_NGAP_ID_encode_aper;

#ifdef __cplusplus
}
#endif

#endif /* _AMF_UE_NGAP_ID_H_ */
#include "asn_internal.h"
47 changes: 47 additions & 0 deletions e2sm/headers/AMFPointer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-COMMON-IEs"
* found in "e2sm2_0.asn"
* `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -no-gen-example -gen-APER`
*/

#ifndef _AMFPointer_H_
#define _AMFPointer_H_


#include "asn_application.h"

/* Including external dependencies */
#include "BIT_STRING.h"

#ifdef __cplusplus
extern "C" {
#endif

/* AMFPointer */
typedef BIT_STRING_t AMFPointer_t;

/* Implementation */
extern asn_per_constraints_t asn_PER_type_AMFPointer_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_AMFPointer;
asn_struct_free_f AMFPointer_free;
asn_struct_print_f AMFPointer_print;
asn_constr_check_f AMFPointer_constraint;
ber_type_decoder_f AMFPointer_decode_ber;
der_type_encoder_f AMFPointer_encode_der;
xer_type_decoder_f AMFPointer_decode_xer;
xer_type_encoder_f AMFPointer_encode_xer;
jer_type_encoder_f AMFPointer_encode_jer;
oer_type_decoder_f AMFPointer_decode_oer;
oer_type_encoder_f AMFPointer_encode_oer;
per_type_decoder_f AMFPointer_decode_uper;
per_type_encoder_f AMFPointer_encode_uper;
per_type_decoder_f AMFPointer_decode_aper;
per_type_encoder_f AMFPointer_encode_aper;

#ifdef __cplusplus
}
#endif

#endif /* _AMFPointer_H_ */
#include "asn_internal.h"
47 changes: 47 additions & 0 deletions e2sm/headers/AMFRegionID.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-COMMON-IEs"
* found in "e2sm2_0.asn"
* `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -no-gen-example -gen-APER`
*/

#ifndef _AMFRegionID_H_
#define _AMFRegionID_H_


#include "asn_application.h"

/* Including external dependencies */
#include "BIT_STRING.h"

#ifdef __cplusplus
extern "C" {
#endif

/* AMFRegionID */
typedef BIT_STRING_t AMFRegionID_t;

/* Implementation */
extern asn_per_constraints_t asn_PER_type_AMFRegionID_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_AMFRegionID;
asn_struct_free_f AMFRegionID_free;
asn_struct_print_f AMFRegionID_print;
asn_constr_check_f AMFRegionID_constraint;
ber_type_decoder_f AMFRegionID_decode_ber;
der_type_encoder_f AMFRegionID_encode_der;
xer_type_decoder_f AMFRegionID_decode_xer;
xer_type_encoder_f AMFRegionID_encode_xer;
jer_type_encoder_f AMFRegionID_encode_jer;
oer_type_decoder_f AMFRegionID_decode_oer;
oer_type_encoder_f AMFRegionID_encode_oer;
per_type_decoder_f AMFRegionID_decode_uper;
per_type_encoder_f AMFRegionID_encode_uper;
per_type_decoder_f AMFRegionID_decode_aper;
per_type_encoder_f AMFRegionID_encode_aper;

#ifdef __cplusplus
}
#endif

#endif /* _AMFRegionID_H_ */
#include "asn_internal.h"
47 changes: 47 additions & 0 deletions e2sm/headers/AMFSetID.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-COMMON-IEs"
* found in "e2sm2_0.asn"
* `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -no-gen-example -gen-APER`
*/

#ifndef _AMFSetID_H_
#define _AMFSetID_H_


#include "asn_application.h"

/* Including external dependencies */
#include "BIT_STRING.h"

#ifdef __cplusplus
extern "C" {
#endif

/* AMFSetID */
typedef BIT_STRING_t AMFSetID_t;

/* Implementation */
extern asn_per_constraints_t asn_PER_type_AMFSetID_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_AMFSetID;
asn_struct_free_f AMFSetID_free;
asn_struct_print_f AMFSetID_print;
asn_constr_check_f AMFSetID_constraint;
ber_type_decoder_f AMFSetID_decode_ber;
der_type_encoder_f AMFSetID_encode_der;
xer_type_decoder_f AMFSetID_decode_xer;
xer_type_encoder_f AMFSetID_encode_xer;
jer_type_encoder_f AMFSetID_encode_jer;
oer_type_decoder_f AMFSetID_decode_oer;
oer_type_encoder_f AMFSetID_encode_oer;
per_type_decoder_f AMFSetID_decode_uper;
per_type_encoder_f AMFSetID_encode_uper;
per_type_decoder_f AMFSetID_decode_aper;
per_type_encoder_f AMFSetID_encode_aper;

#ifdef __cplusplus
}
#endif

#endif /* _AMFSetID_H_ */
#include "asn_internal.h"
84 changes: 84 additions & 0 deletions e2sm/headers/ANY.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*-
* Copyright (c) 2004-2017 Lev Walkin <[email protected]>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_TYPE_ANY_H
#define ASN_TYPE_ANY_H

#include <OCTET_STRING.h> /* Implemented via OCTET STRING type */

#ifdef __cplusplus
extern "C" {
#endif

typedef struct ANY {
uint8_t *buf; /* BER-encoded ANY contents */
int size; /* Size of the above buffer */

asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
} ANY_t;

extern asn_TYPE_descriptor_t asn_DEF_ANY;
extern asn_TYPE_operation_t asn_OP_ANY;
extern asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs;

#define ANY_free OCTET_STRING_free

#if !defined(ASN_DISABLE_PRINT_SUPPORT)
#define ANY_print OCTET_STRING_print
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */

#define ANY_compare OCTET_STRING_compare

#define ANY_constraint asn_generic_no_constraint

#if !defined(ASN_DISABLE_BER_SUPPORT)
#define ANY_decode_ber OCTET_STRING_decode_ber
#define ANY_encode_der OCTET_STRING_encode_der
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */

#if !defined(ASN_DISABLE_XER_SUPPORT)
#define ANY_decode_xer OCTET_STRING_decode_xer_hex
xer_type_encoder_f ANY_encode_xer;
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */

#if !defined(ASN_DISABLE_JER_SUPPORT)
jer_type_encoder_f ANY_encode_jer;
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */

#if !defined(ASN_DISABLE_UPER_SUPPORT)
per_type_decoder_f ANY_decode_uper;
per_type_encoder_f ANY_encode_uper;
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
#if !defined(ASN_DISABLE_APER_SUPPORT)
per_type_decoder_f ANY_decode_aper;
per_type_encoder_f ANY_encode_aper;
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */

/******************************
* Handy conversion routines. *
******************************/

/* Convert another ASN.1 type into the ANY. This implies DER encoding. */
int ANY_fromType(ANY_t *, asn_TYPE_descriptor_t *td, void *struct_ptr);
ANY_t *ANY_new_fromType(asn_TYPE_descriptor_t *td, void *struct_ptr);
#if !defined(ASN_DISABLE_APER_SUPPORT)
int ANY_fromType_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr);
ANY_t *ANY_new_fromType_aper(asn_TYPE_descriptor_t *td, void *sptr);
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */

/* Convert the contents of the ANY type into the specified type. */
int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);
#if !defined(ASN_DISABLE_APER_SUPPORT)
int ANY_to_type_aper(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */

#define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size))
#define ANY_new_fromBuf(buf, size) OCTET_STRING_new_fromBuf( \
&asn_DEF_ANY, (buf), (size))

#ifdef __cplusplus
}
#endif

#endif /* ASN_TYPE_ANY_H */
75 changes: 75 additions & 0 deletions e2sm/headers/BIT_STRING.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/*-
* Copyright (c) 2003-2017 Lev Walkin <[email protected]>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _BIT_STRING_H_
#define _BIT_STRING_H_

#include <OCTET_STRING.h> /* Some help from OCTET STRING */

#ifdef __cplusplus
extern "C" {
#endif

typedef struct BIT_STRING_s {
uint8_t *buf; /* BIT STRING body */
size_t size; /* Size of the above buffer */

int bits_unused;/* Unused trailing bits in the last octet (0..7) */

asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
} BIT_STRING_t;

extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
extern asn_TYPE_operation_t asn_OP_BIT_STRING;
extern asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs;

#define BIT_STRING_free OCTET_STRING_free

#if !defined(ASN_DISABLE_PRINT_SUPPORT)
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */

asn_struct_compare_f BIT_STRING_compare;

asn_constr_check_f BIT_STRING_constraint;

#if !defined(ASN_DISABLE_BER_SUPPORT)
#define BIT_STRING_decode_ber OCTET_STRING_decode_ber
#define BIT_STRING_encode_der OCTET_STRING_encode_der
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */

#if !defined(ASN_DISABLE_XER_SUPPORT)
#define BIT_STRING_decode_xer OCTET_STRING_decode_xer_binary
xer_type_encoder_f BIT_STRING_encode_xer;
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */

#if !defined(ASN_DISABLE_JER_SUPPORT)
jer_type_encoder_f BIT_STRING_encode_jer;
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */

#if !defined(ASN_DISABLE_OER_SUPPORT)
oer_type_decoder_f BIT_STRING_decode_oer;
oer_type_encoder_f BIT_STRING_encode_oer;
#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */

#if !defined(ASN_DISABLE_UPER_SUPPORT)
per_type_decoder_f BIT_STRING_decode_uper;
per_type_encoder_f BIT_STRING_encode_uper;
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
#if !defined(ASN_DISABLE_APER_SUPPORT)
#define BIT_STRING_decode_aper OCTET_STRING_decode_aper
#define BIT_STRING_encode_aper OCTET_STRING_encode_aper
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */

#if !defined(ASN_DISABLE_RFILL_SUPPORT)
asn_random_fill_f BIT_STRING_random_fill;
#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */

const BIT_STRING_t *BIT_STRING__compactify(const BIT_STRING_t *st, BIT_STRING_t *tmp);

#ifdef __cplusplus
}
#endif

#endif /* _BIT_STRING_H_ */
Loading

0 comments on commit f8bad1e

Please sign in to comment.