Skip to content

Commit

Permalink
Initial commit of OpenBTS-UMTS code
Browse files Browse the repository at this point in the history
  • Loading branch information
oleyka committed Oct 16, 2014
1 parent edb16fc commit d7ce14c
Show file tree
Hide file tree
Showing 283 changed files with 146,709 additions and 2 deletions.
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
._*
*.a
*.o
*.in
*.la
*.lo
.deps
.libs
CommonLibs/*Test
Makefile
Makefile.in
ASN/o/
aclocal.m4
autom4te.cache/
apps/ezusb.ihx
apps/fpga.rbf
apps/transceiver
build-arch-stamp
build-indep-stamp
config/libtool.m4
config/ltoptions.m4
config/ltsugar.m4
config/ltversion.m4
config/lt~obsolete.m4
config.guess
config.h
config.log
config.status
config.sub
configure
configure-stamp
depcomp
debian/debhelper.log
debian/files
debian/substvars
debian/tmp/
install-sh
libtool
ltmain.sh
missing
stamp-h1
TransceiverRAD1/RAD1Cmd
TransceiverRAD1/RAD1SN
TransceiverRAD1/RAD1ping
TransceiverRAD1/transceiver
apps/OpenBTS-UMTS
apps/OpenBTS-UMTSCLI
apps/OpenBTS-UMTSDo
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "NodeManager"]
path = NodeManager
url = [email protected]:RangeNetworks/NodeManager.git
branch = master
1 change: 1 addition & 0 deletions ASN/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You need to install the asn1c ASN.1 compiler (v0.9.23), available from the top directory.
73 changes: 73 additions & 0 deletions ASN/asn_SET_OF.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*-
* Copyright (c) 2003, 2004 Lev Walkin <[email protected]>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_SET_OF_H
#define ASN_SET_OF_H

#ifdef __cplusplus
extern "C" {
#endif

// (pat) They sometimes put an implicit struct definition as the type,
// which then causes a double definition in this, so I changed it:
#define A_SET_OF(type) \
struct { \
type **array; \
int count; /* Meaningful size */ \
int size; /* Allocated size */ \
void (*free)(void *); \
}
#if 0 // Original version before pat
#define A_SET_OF(type) \
struct { \
type **array; \
int count; /* Meaningful size */ \
int size; /* Allocated size */ \
void (*free)(type *); \
}
#endif

#define ASN_SET_ADD(headptr, ptr) \
asn_set_add((headptr), (ptr))

/*******************************************
* Implementation of the SET OF structure.
*/

/*
* Add another structure into the set by its pointer.
* RETURN VALUES:
* 0 for success and -1/errno for failure.
*/
int asn_set_add(void *asn_set_of_x, void *ptr);

/*
* Delete the element from the set by its number (base 0).
* This is a constant-time operation. The order of elements before the
* deleted ones is guaranteed, the order of elements after the deleted
* one is NOT guaranteed.
* If _do_free is given AND the (*free) is initialized, the element
* will be freed using the custom (*free) function as well.
*/
void asn_set_del(void *asn_set_of_x, int number, int _do_free);

/*
* Empty the contents of the set. Will free the elements, if (*free) is given.
* Will NOT free the set itself.
*/
void asn_set_empty(void *asn_set_of_x);

/*
* Cope with different conversions requirements to/from void in C and C++.
* This is mostly useful for support library.
*/
typedef A_SET_OF(void) asn_anonymous_set_;
#define _A_SET_FROM_VOID(ptr) ((asn_anonymous_set_ *)(ptr))
#define _A_CSET_FROM_VOID(ptr) ((const asn_anonymous_set_ *)(ptr))

#ifdef __cplusplus
}
#endif

#endif /* ASN_SET_OF_H */
Loading

0 comments on commit d7ce14c

Please sign in to comment.