summaryrefslogtreecommitdiffstats
path: root/include/osmocom/sim
Commit message (Collapse)AuthorAgeFilesLines
* Add _c versions of functions that otherwise return static buffersHarald Welte2019-04-101-0/+1
| | | | | | | | | | | | | | We have a habit of returning static buffers from some functions, particularly when generating some kind of string values. This is convenient in terms of memory management, but it comes at the expense of not being thread-safe, and not allowing for two calls of the related function within one printf() statement. Let's introduce _c suffix versions of those functions where the caller passes in a talloc context from which the output buffer shall be allocated. Change-Id: I8481c19b68ff67cfa22abb93c405ebcfcb0ab19b
* Add _buf() functions to bypass static string buffersHarald Welte2019-04-031-0/+1
| | | | | | | | | | | | | | | We have a number of static buffers in use in libosmo*. This means the related functions are not usable in a thread-safe way. While we so far don't have many multi-threaded programs in the osmocom universe, the static buffers also prevent us from calling the same e.g. string-ify function twice within a single printf() call. Let's make sure there's an alternative function in all those cases, where the user can pass in a caller-allocated buffer + size, and make the 'classic' function with the static buffer a wrapper around that _buf() variant. Change-Id: Ibf85f79e93244f53b2684ff6f1095c5b41203e05
* doxygen: unify use of \file across the boardNeels Hofmeyr2017-06-232-9/+9
| | | | | | | | | | | | | | | | | Considering the various styles and implications found in the sources, edit scores of files to follow the same API doc guidelines around the doxygen grouping and the \file tag. Many files now show a short description in the generated API doc that was so far only available as C comment. The guidelines and reasoning behind it is documented at https://osmocom.org/projects/cellular-infrastructure/wiki/Guidelines_for_API_documentation In some instances, remove file comments and add to the corresponding group instead, to be shared among several files (e.g. bitvec). Change-Id: Ifa70e77e90462b5eb2b0457c70fd25275910c72b
* doxygen: enable AUTOBRIEF, drop \briefNeels Hofmeyr2017-06-231-19/+19
| | | | | | | | | | Especially for short descriptions, it is annoying to have to type \brief for every single API doc. Drop all \brief and enable the AUTOBRIEF feature of doxygen, which always takes the first sentence of an API doc as the brief description. Change-Id: I11a8a821b065a128108641a2a63fb5a2b1916e87
* sim: make osim_reader_ops publicHarald Welte2016-03-191-2/+7
|
* sim: add class_tables / card profilesHarald Welte2016-03-171-0/+42
| | | | | The tables permit code to determine the APDU class of an APDU based on it APDU/TPDU header (CLA/INS/P1/P2/P3).
* rename osim_file_find_* to osim_file_desc_find_*Harald Welte2016-03-111-3/+3
| | | | they return an osim_file_desc, and not an osim_file, so fix the naming
* sim: Add osim_file_find_{fid,sfid}() functionsHarald Welte2016-03-111-0/+6
| | | | | We don't always want to look-up by name, but the latter is the only implemented 'find' function so far. Let's change that.
* sim: Use extern for these structs to generate a linkageHolger Hans Peter Freyther2015-04-111-1/+1
| | | | | | | | | | Fixes: duplicate symbol _ts102221_fcp_vals in: .libs/core.o .libs/card_fs_usim.o duplicate symbol _pcsc_reader_ops in: .libs/reader.o .libs/card_fs_usim.o
* make sure to register DF.TELECOM and DF.GSM for SIM, USIM + TSIMHarald Welte2014-10-261-2/+2
| | | | | before we only did it partially, and by exporting data from sim, rather than the new osim_int_cprof_add_{gsm,telecom}() functions.
* sim: add missing const to reader_ops member of reader_handleHarald Welte2014-10-261-1/+1
|
* sim: Prepare infrastructure for protocols != T=0 and other driversHarald Welte2014-10-261-2/+17
|
* sim: More comments in sim.hHarald Welte2014-10-261-12/+44
|
* sim: Make TETRA SIM (TSIM) support compileHarald Welte2014-10-261-0/+9
|
* sim: mark osim_msgb_cb as __may_alias__ to avoid gcc warningsHarald Welte2014-10-261-1/+1
|
* sim: Add sfi to EF_*() macrosHarald Welte2014-10-261-11/+14
|
* sim: Add minimal/recommended size of file / recordHarald Welte2014-10-261-15/+29
|
* sim: further updates/fixesHarald Welte2014-10-261-1/+3
|
* sim: add decoding of status wordsHarald Welte2014-10-261-2/+8
|
* sim: replaced function/structure comments with doxygen commentsKevin Redon2014-10-261-19/+39
| | | | | affected files: sim.h, sim/core.c affected funtions/strucutres: osim_new_apdumsg, osim_apdu_case,osim_apdu_cmd_hdr, osim_msgb_cb
* sim: add comment/explaination for structure osim_msgb_cbKevin Redon2014-10-261-4/+5
|
* sim: add comment/explaination for structure osim_apdu_cmd_hdrKevin Redon2014-10-261-5/+6
|
* sim: renamed case to the one defined in ISO7816-3Kevin Redon2014-10-261-6/+6
| | | | | | | | | APDU_CASE_2 becomes APDU_CASE_2S APDU_CASE_2_EXT becmoes APDU_CASE_2E APDU_CASE_3 becomes APDU_CASE_3S APDU_CASE_3_EXT becmoes APDU_CASE_3E APDU_CASE_4 becomes APDU_CASE_4S APDU_CASE_4_EXT becmoes APDU_CASE_4E
* sim: add comment/explaination for structure osim_apdu_caseKevin Redon2014-10-261-8/+8
|
* initial checkin of 'libosmosim'Harald Welte2014-10-261-0/+268