summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Remove ELAPI from the SSSD repositoryStephen Gallagher2010-02-1240-8421/+3
| | | | | ELAPI now lives in its own project at https://fedorahosted.org/ELAPI
* Make collection_queue.h and collection_stack.h into public headersStephen Gallagher2010-02-101-3/+3
|
* Split refarray off into a shared libraryStephen Gallagher2010-02-034-10/+13
|
* Add license files for refarrayStephen Gallagher2010-02-032-0/+839
|
* Split off libini_config into a shared libraryStephen Gallagher2010-02-034-7/+19
|
* Fix array index errorStephen Gallagher2010-02-031-1/+1
| | | | | | The null-terminator would have been written one byte past the end of the array (and there may have been an extra garbage character in the index before it)
* Add license files for ini_configStephen Gallagher2010-02-032-0/+839
|
* Split off libcollection into a shared libraryStephen Gallagher2010-02-033-7/+13
|
* Remove private header requirements from collection_tools.hStephen Gallagher2010-02-031-1/+0
|
* Add license files for collectionStephen Gallagher2010-02-032-0/+839
|
* Split off libpath_utils into a shared libraryStephen Gallagher2010-02-033-8/+11
|
* License libpath_utils under LGPLStephen Gallagher2010-02-033-0/+846
|
* COLLECTION: Fixing queue collection and unit tests.Dmitri Pal2010-02-014-298/+478
| | | | | | | | | | This patch includes following functionality: 1) Fixed the invalid handling of the pointers in the collection when last element is removed from the collection. 2) Added unit test to verify the fix. 3) Modified the three unit test to be verbose on demand. 4) Switched the main of the unit test to use array of functions rather than big if statement.
* REFARRAY: New referenced array objectDmitri Pal2010-01-219-2/+802
| | | | | | | | | | | | | | | | | | | This object allows creation the arrays with the reference count. Usefull when there are many instances of some object have to reference dynamically allocated array which is common for all these instances. In case of ELAPI the event object keeps a referecne to the common array of the sinks in the fail over order. We decided that it will be a common object not specific only to ELAPI. All the review concerns related to this object have been addressed in this patch. It also has been moved to the common area.
* INI: Added method to get string list with empty valuesDmitri Pal2010-01-213-54/+117
| | | | | | | | | | | The original implementation was compressing the list, throwing away empty strings. The function that did that was pretty brain damaging. I cleaned it up and adjusted so that it could return list with empty values and without them. The old function was turned into a wrapper and a new high level function was intorduced to provide ability to get both empty and non empty strings.
* Use version.m4 for setting the SSSD versionStephen Gallagher2010-01-211-1/+2
| | | | | | | | This is the preferred way of setting the version in a file, as autotools will properly monitor this file for changes and rerun autoconf/configure when necessary to update the version. This means that we don't need to manually perform an autoreconf in order to build a new RPM
* Split off libdhash into a shared libraryStephen Gallagher2010-01-205-9/+16
| | | | | | | | Right now, the pkg-config checks for the system version of libdhash are forcibly disabled, requiring the SSSD to build it from its own tree. In the future, when we split the libraries off from the SSSD, it will be easy to switch this check to the external library.
* License libdhash under the LGPLStephen Gallagher2010-01-203-0/+844
|
* Add elapi_ut.conf to the list of dist filesSumit Bose2009-12-152-3/+4
| | | | Some newlines are added, too.
* INI Correcting build warnings.Dmitri Pal2009-12-102-8/+7
| | | | | | The previous patch included "config.h" into the public header which caused all sorts of redefinitions and warnings.
* INI: Cleaning FIXME comments.Dmitri Pal2009-12-103-7/+16
| | | | | | | Added configurable key length. Changed comments for the functions that are currently not used and reserved for future functionality.
* COLLECTION: Cleaning FIXME commentsDmitri Pal2009-12-103-20/+2
| | | | | | | I scanned through the code and made sure that the FIXME comments are either addressed or a corresponding ticket exists. I removed two comments that had "FIXME" in them. The tickets for those comments are #72 and #308.
* COLLECTION Create reference to the top level collectionDmitri Pal2009-12-103-21/+47
| | | | | | | | | | | | | This patch adds ability to create a reference to the top level collection. Previously one could get reference only to collection inside other collection. With this change it becomes possible to have two pointers to the same top level collection from multiple places. COLLECTION Adding comment. COLLECTION: Some tracing
* COMMON Improvements to the trace macroDmitri Pal2009-12-101-9/+15
| | | | | Added more distingushable indication to the trace messages that represent errors.
* Add comments to document latest changesSimo Sorce2009-12-081-0/+7
|
* dhash: Add private pointer for delete callbackSimo Sorce2009-12-084-13/+35
| | | | | Also pass a flag to the delete callback to tell it if this is a normal entry removal or we are cleaning up the tbale definitively.
* Run dhash testsStephen Gallagher2009-12-081-0/+2
| | | | Previously we were only building them but not running them.
* Change dhash API to be talloc-friendlySimo Sorce2009-12-083-39/+78
|
* Revert "Remove ELAPI from build and tarball"Stephen Gallagher2009-12-011-2/+3
| | | | This reverts commit 9a446ad6d6445ed22f0d5132a241a3c8be5e1008.
* Revert "Stop configuring ELAPI"Stephen Gallagher2009-12-011-1/+1
| | | | This reverts commit a7360aa07780133b77c7fa0ab629b5e660e1e49a.
* Stop configuring ELAPIStephen Gallagher2009-12-011-1/+1
|
* Remove ELAPI from build and tarballStephen Gallagher2009-12-011-3/+2
| | | | | | Until such time as ELAPI is in a usable state, it makes no sense to be building and distributing it in the tarball. This patch will disable it from building and inclusion in the tarball.
* Clean up warnings in dhash testsStephen Gallagher2009-10-292-9/+9
|
* ELAPI Compatibility code for getifaddr()Dmitri Pal2009-10-1610-20/+357
| | | | | | | | | | Addreses ticket #94 Actually works pretty well. To try use --enable-compat when build ELAPI. It will use compatibility code instead of getifaddr(). The trick in the elapi_ioctl.h with memory allocation is taken from Stevens book.
* ELAPI Fixed the host name resolutionDmitri Pal2009-10-052-13/+111
| | | | | | | | The issue was that the host IP was recorded twice, once as a main address and another as IP alias. It seemed that the IP was returned as name but the issue turned out to be different. See https://fedorahosted.org/sssd/ticket/207.
* ELAPI Rename variables and functions not to use word templateDmitri Pal2009-10-057-113/+113
| | | | | | Addressing Ticket #191. Renamed all varibles from 'template' to 'tpl'. Used 'tplt' in function names instead of 'templete'.
* INI Add config_from_fd() to ini_configStephen Gallagher2009-10-053-22/+239
| | | | | | | Patch adds ability to read configuration using already open file descriptor. Started by Steve G and refined a bit by me.
* ELAPI Fixing warnings in the exampleDmitri Pal2009-10-051-2/+9
|
* ELAPI Resolving message attributeDmitri Pal2009-10-058-57/+536
| | | | | | | | | | | | This patch continues work started with the previous patch. It resolves message attribute. Message attribute is a special attribute in the event that may contain references to other attributes in the event. When message is resolved the references are replaced with actual values of the referenced attributes.
* ELAPI Event resolverDmitri Pal2009-10-0514-95/+828
| | | | | | | | | | | | | | | | | Started working on the async processing and realised that I need to have a good copy of the event with all the fields resolved so this patch has some foundation for the async functions (module elapi_async.c) but they are mostly stubbed out. The actual code will be added down the road. Instead the patch focuses on the code introduced in elapi_resolve.c module and the use of the functions from it. It also adds the implementation of the high level calls that initialize ELAPI with the external callbacks to be used during async processing (elapi_log.c).
* COLLECTION Enhancing hashing and iteration functionsDmitri Pal2009-10-054-8/+76
|
* COLLECTION Making iterations pinnableDmitri Pal2009-10-054-7/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a feature that helps ELAPI. It makes lookup of the fields that need to be resolved for every event a bit faster. The idea is to be able to put a 'pin' into a specific place while iterating the collection and make this place a new "wrap around" place for the collection. This means that next time you iterate this collection you will start iterating from the next item and the item you got before pin will be last in your iteration cycle. Here is the example: Assume you have two collections that you need to compare and perform some action on collection 1 based on the presense of the item in collection 2. Collection1 = A, B, C, D, E. F Collection2 = A, C, F The usual approach is to try A from collection 1 against A, B, C from collection 2. "A" will be found right away. But to find "F" it has to be compared to "A" and "C" first. The fact that the collections are to some extent ordered can in some cases help to reduce the number of comparisons. If we found "C" in the list we can put a "pin" into the collection there causing the iterator to warp at this "pin" point. Since "D" and "E" are not in the second collection we will have to make same amount of comparisons in traditional or "pinned" case to not find them. To find "F" in pinned case there will be just one comparison. Traditional case = 1 + 3 + 2 + 3 + 3 + 3 = 15 Pinned case = 1 + 3 + 1 + 3 + 3 + 1 = 12 It is a 20% comparison reduction.
* COLLECTION Realigning collection codeDmitri Pal2009-10-054-330/+372
| | | | | | | | | | Created a new module to hold functions related to iterator and iterating collections. Planning to add new functions but the main collection module is already too big. So this patch just moves code around and fixes the build making foundation for the next patch.
* COLLECTION Adding item comparison and sortingDmitri Pal2009-10-057-5/+697
| | | | | | | | | | | Needed item comparison functions and realized that the easiest way to test them would be using sorting. Since there already been a ticket #73 to do that I added function to sort collection based on different properties of the item. COLLECTION Fixing issues with comparisons COLLECTION Adding do-while to macro
* ELAPI: Ticket 161: Initialize structures with calloc instead of enumerating ↵Jakub Hrozek2009-09-215-36/+6
| | | | members
* ELAPI: fix varargs call, update unit testsJakub Hrozek2009-09-213-8/+58
|
* ELAPI: Fix dispatcher structure initializationJakub Hrozek2009-09-161-10/+1
|
* Include m4 directories in tarballStephen Gallagher2009-09-157-5/+20
| | | | Necessary for RPM builds on RHEL5
* INI Error handling and interface cleanupDmitri Pal2009-09-152-30/+86
| | | | | | | | Inspired by issue #173 I reviewed the other function of the interface and found a lot of problems with its error handling. Also made INI use collection public interfaces.
* Add 'make tests' targetStephen Gallagher2009-09-118-0/+21
|