mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-09 12:16:46 +00:00
clang-tidy: apply readability-inconsistent-declaration-parameter-name check
This commit is contained in:
parent
b3ae2c969a
commit
1ad1366938
@ -63,8 +63,8 @@
|
||||
/*
|
||||
* See the definitions.
|
||||
*/
|
||||
static int _fetch_present_idx(const void *struct_ptr, int off, int size);
|
||||
static void _set_present_idx(void *sptr, int offset, int size, int pres);
|
||||
static int _fetch_present_idx(const void *struct_ptr, int pres_offset, int size);
|
||||
static void _set_present_idx(void *struct_ptr, int offset, int size, int pres);
|
||||
|
||||
/*
|
||||
* Tags are canonically sorted in the tag to member table.
|
||||
|
@ -34,7 +34,7 @@ extern asn_TYPE_descriptor_t *asn_pdu_collection[];
|
||||
/*
|
||||
* Open file and parse its contens.
|
||||
*/
|
||||
static void *data_decode_from_file(asn_TYPE_descriptor_t *asnTypeOfPDU,
|
||||
static void *data_decode_from_file(asn_TYPE_descriptor_t *pduType,
|
||||
FILE *file, const char *name, ssize_t suggested_bufsize, int first_pdu);
|
||||
static int write_out(const void *buffer, size_t size, void *key);
|
||||
static FILE *argument_to_file(char *av[], int idx);
|
||||
|
@ -34,13 +34,13 @@ extern "C"
|
||||
* instead of default local one.
|
||||
* On error returns -1 and errno set to EINVAL
|
||||
*/
|
||||
time_t asn_GT2time(const GeneralizedTime_t * /*st*/, struct tm *_optional_tm4fill,
|
||||
time_t asn_GT2time(const GeneralizedTime_t * /*st*/, struct tm *ret_tm,
|
||||
int as_gmt);
|
||||
|
||||
/* A version of the above function also returning the fractions of seconds */
|
||||
time_t asn_GT2time_frac(const GeneralizedTime_t * /*st*/,
|
||||
int *frac_value, int *frac_digits, /* (value / (10 ^ digits)) */
|
||||
struct tm *_optional_tm4fill, int as_gmt);
|
||||
struct tm *ret_tm, int as_gmt);
|
||||
|
||||
/*
|
||||
* Another version returning fractions with defined precision
|
||||
@ -49,7 +49,7 @@ extern "C"
|
||||
*/
|
||||
time_t asn_GT2time_prec(const GeneralizedTime_t * /*st*/,
|
||||
int *frac_value, int frac_digits,
|
||||
struct tm *_optional_tm4fill, int as_gmt);
|
||||
struct tm *ret_tm, int as_gmt);
|
||||
|
||||
/*
|
||||
* Convert a struct tm into GeneralizedTime.
|
||||
@ -58,9 +58,9 @@ extern "C"
|
||||
* into a GMT time zone (encoding ends with a "Z").
|
||||
* On error, this function returns 0 and sets errno.
|
||||
*/
|
||||
GeneralizedTime_t *asn_time2GT(GeneralizedTime_t *_optional_gt,
|
||||
GeneralizedTime_t *asn_time2GT(GeneralizedTime_t *opt_gt,
|
||||
const struct tm * /*tm*/, int force_gmt);
|
||||
GeneralizedTime_t *asn_time2GT_frac(GeneralizedTime_t *_optional_gt,
|
||||
GeneralizedTime_t *asn_time2GT_frac(GeneralizedTime_t *opt_gt,
|
||||
const struct tm * /*tm*/, int frac_value, int frac_digits, int force_gmt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -57,8 +57,8 @@ extern "C"
|
||||
*/
|
||||
int asn_INTEGER2long(const INTEGER_t *i, long *l);
|
||||
int asn_INTEGER2ulong(const INTEGER_t *i, unsigned long *l);
|
||||
int asn_long2INTEGER(INTEGER_t *i, long l);
|
||||
int asn_ulong2INTEGER(INTEGER_t *i, unsigned long l);
|
||||
int asn_long2INTEGER(INTEGER_t *st, long value);
|
||||
int asn_ulong2INTEGER(INTEGER_t *st, unsigned long value);
|
||||
|
||||
/*
|
||||
* Convert the integer value into the corresponding enumeration map entry.
|
||||
|
@ -48,7 +48,7 @@ extern "C"
|
||||
* current contents of the OCTET STRING.
|
||||
* Returns 0 if it was possible to perform operation, -1 otherwise.
|
||||
*/
|
||||
int OCTET_STRING_fromBuf(OCTET_STRING_t *s, const char *str, int size);
|
||||
int OCTET_STRING_fromBuf(OCTET_STRING_t *s, const char *str, int len);
|
||||
|
||||
/* Handy conversion from the C string into the OCTET STRING. */
|
||||
#define OCTET_STRING_fromString(s, str) OCTET_STRING_fromBuf(s, str, -1)
|
||||
@ -59,7 +59,7 @@ extern "C"
|
||||
* empty OCTET STRING.
|
||||
*/
|
||||
OCTET_STRING_t *OCTET_STRING_new_fromBuf(asn_TYPE_descriptor_t *td,
|
||||
const char *str, int size);
|
||||
const char *str, int len);
|
||||
|
||||
/****************************
|
||||
* Internally useful stuff. *
|
||||
|
@ -27,7 +27,7 @@ extern "C"
|
||||
struct tm; /* <time.h> */
|
||||
|
||||
/* See asn_GT2time() in GeneralizedTime.h */
|
||||
time_t asn_UT2time(const UTCTime_t * /*st*/, struct tm *_optional_tm4fill, int as_gmt);
|
||||
time_t asn_UT2time(const UTCTime_t * /*st*/, struct tm *_tm, int as_gmt);
|
||||
|
||||
/* See asn_time2GT() in GeneralizedTime.h */
|
||||
UTCTime_t *asn_time2UT(UTCTime_t *__opt_ut, const struct tm * /*tm*/, int force_gmt);
|
||||
|
@ -41,8 +41,8 @@ extern "C"
|
||||
* Also see xer_decode_general() in xer_decoder.h
|
||||
*/
|
||||
asn_dec_rval_t xer_decode_primitive(asn_codec_ctx_t *opt_codec_ctx,
|
||||
asn_TYPE_descriptor_t *type_descriptor,
|
||||
void **struct_ptr, size_t struct_size,
|
||||
asn_TYPE_descriptor_t *td,
|
||||
void **sptr, size_t struct_size,
|
||||
const char *opt_mname,
|
||||
const void *buf_ptr, size_t size,
|
||||
xer_primitive_body_decoder_f *prim_body_decoder);
|
||||
|
@ -23,7 +23,7 @@ extern "C"
|
||||
asn_dec_rval_t ber_decode(struct asn_codec_ctx_s *opt_codec_ctx,
|
||||
struct asn_TYPE_descriptor_s *type_descriptor,
|
||||
void **struct_ptr, /* Pointer to a target structure's pointer */
|
||||
const void *buffer, /* Data to be decoded */
|
||||
const void *ptr, /* Data to be decoded */
|
||||
size_t size /* Size of that buffer */
|
||||
);
|
||||
|
||||
@ -49,7 +49,7 @@ extern "C"
|
||||
*/
|
||||
asn_dec_rval_t ber_check_tags(
|
||||
struct asn_codec_ctx_s *opt_codec_ctx, /* codec options */
|
||||
struct asn_TYPE_descriptor_s *type_descriptor,
|
||||
struct asn_TYPE_descriptor_s *td,
|
||||
asn_struct_ctx_t *opt_ctx, /* saved decoding context */
|
||||
const void *ptr, size_t size,
|
||||
int tag_mode, /* {-1,0,1}: IMPLICIT, no, EXPLICIT */
|
||||
|
@ -33,7 +33,7 @@ extern "C"
|
||||
* (i.e. "[PRIVATE 0]").
|
||||
* Return values correspond to their libc counterparts (if any).
|
||||
*/
|
||||
ssize_t ber_tlv_tag_snprint(ber_tlv_tag_t tag, char *buf, size_t buflen);
|
||||
ssize_t ber_tlv_tag_snprint(ber_tlv_tag_t tag, char *buf, size_t size);
|
||||
ssize_t ber_tlv_tag_fwrite(ber_tlv_tag_t tag, FILE * /*f*/);
|
||||
char *ber_tlv_tag_string(ber_tlv_tag_t tag);
|
||||
|
||||
|
@ -63,8 +63,8 @@
|
||||
/*
|
||||
* See the definitions.
|
||||
*/
|
||||
static int _fetch_present_idx(const void *struct_ptr, int off, int size);
|
||||
static void _set_present_idx(void *sptr, int offset, int size, int pres);
|
||||
static int _fetch_present_idx(const void *struct_ptr, int pres_offset, int size);
|
||||
static void _set_present_idx(void *struct_ptr, int offset, int size, int pres);
|
||||
|
||||
/*
|
||||
* Tags are canonically sorted in the tag to member table.
|
||||
|
@ -53,7 +53,7 @@ extern "C"
|
||||
* Write out leading TL[v] sequence according to the type definition.
|
||||
*/
|
||||
ssize_t der_write_tags(
|
||||
struct asn_TYPE_descriptor_s *type_descriptor,
|
||||
struct asn_TYPE_descriptor_s *sd,
|
||||
size_t struct_length,
|
||||
int tag_mode, /* {-1,0,1}: IMPLICIT, no, EXPLICIT */
|
||||
int last_tag_form, /* {0,!0}: prim, constructed */
|
||||
|
@ -20,8 +20,8 @@ extern "C"
|
||||
* On success, this call always returns (.consumed >= 1), as per X.691#10.1.3.
|
||||
*/
|
||||
asn_dec_rval_t uper_decode_complete(struct asn_codec_ctx_s *opt_codec_ctx,
|
||||
struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */
|
||||
void **struct_ptr, /* Pointer to a target structure's pointer */
|
||||
struct asn_TYPE_descriptor_s *td, /* Type to decode */
|
||||
void **sptr, /* Pointer to a target structure's pointer */
|
||||
const void *buffer, /* Data to be decoded */
|
||||
size_t size /* Size of data buffer */
|
||||
);
|
||||
@ -31,8 +31,8 @@ extern "C"
|
||||
* WARNING: This call returns the number of BITS read from the stream. Beware.
|
||||
*/
|
||||
asn_dec_rval_t uper_decode(struct asn_codec_ctx_s *opt_codec_ctx,
|
||||
struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */
|
||||
void **struct_ptr, /* Pointer to a target structure's pointer */
|
||||
struct asn_TYPE_descriptor_s *td, /* Type to decode */
|
||||
void **sptr, /* Pointer to a target structure's pointer */
|
||||
const void *buffer, /* Data to be decoded */
|
||||
size_t size, /* Size of data buffer */
|
||||
int skip_bits, /* Number of unused leading bits, 0..7 */
|
||||
|
@ -21,8 +21,8 @@ extern "C"
|
||||
* field of the return value. Use the following formula to convert to bytes:
|
||||
* bytes = ((.encoded + 7) / 8)
|
||||
*/
|
||||
asn_enc_rval_t uper_encode(struct asn_TYPE_descriptor_s *type_descriptor,
|
||||
void *struct_ptr, /* Structure to be encoded */
|
||||
asn_enc_rval_t uper_encode(struct asn_TYPE_descriptor_s *td,
|
||||
void *sptr, /* Structure to be encoded */
|
||||
asn_app_consume_bytes_f *consume_bytes_cb, /* Data collector */
|
||||
void *app_key /* Arbitrary callback argument */
|
||||
);
|
||||
@ -33,8 +33,8 @@ extern "C"
|
||||
* field of the return value.
|
||||
*/
|
||||
asn_enc_rval_t uper_encode_to_buffer(
|
||||
struct asn_TYPE_descriptor_s *type_descriptor,
|
||||
void *struct_ptr, /* Structure to be encoded */
|
||||
struct asn_TYPE_descriptor_s *td,
|
||||
void *sptr, /* Structure to be encoded */
|
||||
void *buffer, /* Pre-allocated buffer */
|
||||
size_t buffer_size /* Initial buffer size (max) */
|
||||
);
|
||||
@ -47,9 +47,9 @@ extern "C"
|
||||
* encoding of uper_encode() and uper_encode_to_buffer().
|
||||
*/
|
||||
ssize_t uper_encode_to_new_buffer(
|
||||
struct asn_TYPE_descriptor_s *type_descriptor,
|
||||
struct asn_TYPE_descriptor_s *td,
|
||||
asn_per_constraints_t *constraints,
|
||||
void *struct_ptr, /* Structure to be encoded */
|
||||
void *sptr, /* Structure to be encoded */
|
||||
void **buffer_r /* Buffer allocated and returned */
|
||||
);
|
||||
|
||||
|
@ -56,24 +56,24 @@ extern "C"
|
||||
* This function returns -1 if the specified number of bits could not be
|
||||
* extracted due to EOD or other conditions.
|
||||
*/
|
||||
int32_t per_get_few_bits(asn_per_data_t *per_data, int get_nbits);
|
||||
int32_t per_get_few_bits(asn_per_data_t *pd, int get_nbits);
|
||||
|
||||
/* Undo the immediately preceeding "get_few_bits" operation */
|
||||
void per_get_undo(asn_per_data_t *per_data, int get_nbits);
|
||||
void per_get_undo(asn_per_data_t *pd, int get_nbits);
|
||||
|
||||
/*
|
||||
* Extract a large number of bits from the specified PER data pointer.
|
||||
* This function returns -1 if the specified number of bits could not be
|
||||
* extracted due to EOD or other conditions.
|
||||
*/
|
||||
int per_get_many_bits(asn_per_data_t *pd, uint8_t *dst, int right_align,
|
||||
int per_get_many_bits(asn_per_data_t *pd, uint8_t *dst, int alright,
|
||||
int get_nbits);
|
||||
|
||||
/*
|
||||
* Get the length "n" from the Unaligned PER stream.
|
||||
*/
|
||||
ssize_t uper_get_length(asn_per_data_t *pd,
|
||||
int effective_bound_bits,
|
||||
int ebits,
|
||||
int *repeat);
|
||||
|
||||
/*
|
||||
@ -87,7 +87,7 @@ extern "C"
|
||||
ssize_t uper_get_nsnnwn(asn_per_data_t *pd);
|
||||
|
||||
/* X.691-2008/11, #11.5.6 */
|
||||
int uper_get_constrained_whole_number(asn_per_data_t *pd, unsigned long *v, int nbits);
|
||||
int uper_get_constrained_whole_number(asn_per_data_t *pd, unsigned long *out_value, int nbits);
|
||||
|
||||
/* Non-thread-safe debugging function, don't use it */
|
||||
char *per_data_string(asn_per_data_t *pd);
|
||||
@ -107,7 +107,7 @@ extern "C"
|
||||
} asn_per_outp_t;
|
||||
|
||||
/* Output a small number of bits (<= 31) */
|
||||
int per_put_few_bits(asn_per_outp_t *per_data, uint32_t bits, int obits);
|
||||
int per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits);
|
||||
|
||||
/* Output a large number of bits */
|
||||
int per_put_many_bits(asn_per_outp_t *po, const uint8_t *src, int put_nbits);
|
||||
|
@ -18,7 +18,7 @@ extern "C"
|
||||
* The XER decoder of any ASN.1 type. May be invoked by the application.
|
||||
*/
|
||||
asn_dec_rval_t xer_decode(struct asn_codec_ctx_s *opt_codec_ctx,
|
||||
struct asn_TYPE_descriptor_s *type_descriptor,
|
||||
struct asn_TYPE_descriptor_s *td,
|
||||
void **struct_ptr, /* Pointer to a target structure's pointer */
|
||||
const void *buffer, /* Data to be decoded */
|
||||
size_t size /* Size of data buffer */
|
||||
|
@ -25,8 +25,8 @@ extern "C"
|
||||
/*
|
||||
* The XER encoder of any type. May be invoked by the application.
|
||||
*/
|
||||
asn_enc_rval_t xer_encode(struct asn_TYPE_descriptor_s *type_descriptor,
|
||||
void *struct_ptr, /* Structure to be encoded */
|
||||
asn_enc_rval_t xer_encode(struct asn_TYPE_descriptor_s *td,
|
||||
void *sptr, /* Structure to be encoded */
|
||||
enum xer_encoder_flags_e xer_flags,
|
||||
asn_app_consume_bytes_f *consume_bytes_cb,
|
||||
void *app_key /* Arbitrary callback argument */
|
||||
|
@ -47,7 +47,7 @@ extern "C"
|
||||
* It will always be lesser than or equal to the specified _size.
|
||||
* The next invocation of this function must account the difference.
|
||||
*/
|
||||
ssize_t pxml_parse(int *_stateContext, const void *_buf, size_t _size,
|
||||
ssize_t pxml_parse(int *_stateContext, const void *xmlbuf, size_t _size,
|
||||
pxml_callback_f *cb, void *_key);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -243,7 +243,7 @@ void supl_set_wcdma_cell(supl_ctx_t *ctx, int mcc, int mns, int uc);
|
||||
void supl_set_gsm_cell_known(supl_ctx_t *ctx, int mcc, int mns, int lac, int ci, double lat, double lon, int uncert);
|
||||
void supl_set_server(supl_ctx_t *ctx, char *server);
|
||||
void supl_set_fd(supl_ctx_t *ctx, int fd);
|
||||
void supl_request(supl_ctx_t *ctx, int flags);
|
||||
void supl_request(supl_ctx_t *ctx, int request);
|
||||
|
||||
int supl_get_assist(supl_ctx_t *ctx, char *server, supl_assist_t *assist);
|
||||
void supl_set_debug(FILE *log, int flags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user