summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2010-04-12Support docdir and abs_builddirStephen Gallagher1-0/+6
Old versions of autoconf (before 2.60) did not include support for the docdir and abs_builddir variables. This patch emulates support for them. Fixes https://fedorahosted.org/sssd/ticket/422
2010-04-08Adding interface documentationDmitri Pal5-20/+1727
Package refarray documentation by default
2010-03-25Fix path_utils_ut segfaultStephen Gallagher1-2/+3
In the case where the allocated buffer is not large enough to hold the resulting absolute path, we were writing out a null terminator outside of the buffer, instead of at its beginning. Also fixes potential issue where split_path would not initialize the count to zero if it returned a failure.
2010-03-25Generate doxygen documentation for path_utilsJakub Hrozek5-113/+1848
2010-03-25Unit tests for path_utilsJakub Hrozek3-0/+741
Fixes: #81
2010-03-25Fixes for path_utilsJakub Hrozek1-63/+109
* Do not segfault on passing NULL path to get_{dir,base}name * There is no way dirname can return "..", remove that code * Buffer overflow in path_concat * Expand . in get_basename * Return NULL rather than crash in split_path on passing NULL path * Be more defensive in directory_list
2010-03-17Fixing type conversion in INI interface.Dmitri Pal3-35/+197
Additional changes.
2010-03-15Convert collection to use sized values.Dmitri Pal3-75/+83
This patch replaces int with int32_t, unsigned with uint32_t, long with int64_t, unsigned long with uint64_t as values that collection can store and hold.
2010-03-15Build and package libini_config docsStephen Gallagher2-2/+1
2010-03-15Adding interface description using doxygen.Dmitri Pal4-161/+2728
2010-03-12Fixing verbosity and formatting of the INI unit test.Dmitri Pal1-132/+197
2010-03-12Do not generate man pages for COLLECION for now.Dmitri Pal1-2/+2
2010-03-08Package libcollection documentation into libcollection-develStephen Gallagher2-2/+6
2010-03-08Documentation for collection interfaceDmitri Pal9-880/+5171
Passed through the interface and changed the comments to comply with the collection interface.
2010-02-18Properly license libdhashStephen Gallagher4-0/+88
2010-02-18License libpath_utils under LGPLStephen Gallagher2-7/+38
2010-02-12Remove ELAPI from the SSSD repositoryStephen Gallagher40-8421/+3
ELAPI now lives in its own project at https://fedorahosted.org/ELAPI
2010-02-10Make collection_queue.h and collection_stack.h into public headersStephen Gallagher1-3/+3
2010-02-03Split refarray off into a shared libraryStephen Gallagher4-10/+13
2010-02-03Add license files for refarrayStephen Gallagher2-0/+839
2010-02-03Split off libini_config into a shared libraryStephen Gallagher4-7/+19
2010-02-03Fix array index errorStephen Gallagher1-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)
2010-02-03Add license files for ini_configStephen Gallagher2-0/+839
2010-02-03Split off libcollection into a shared libraryStephen Gallagher3-7/+13
2010-02-03Remove private header requirements from collection_tools.hStephen Gallagher1-1/+0
2010-02-03Add license files for collectionStephen Gallagher2-0/+839
2010-02-03Split off libpath_utils into a shared libraryStephen Gallagher3-8/+11
2010-02-03License libpath_utils under LGPLStephen Gallagher3-0/+846
2010-02-01COLLECTION: Fixing queue collection and unit tests.Dmitri Pal4-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.
2010-01-21REFARRAY: New referenced array objectDmitri Pal9-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.
2010-01-21INI: Added method to get string list with empty valuesDmitri Pal3-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.
2010-01-21Use version.m4 for setting the SSSD versionStephen Gallagher1-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
2010-01-20Split off libdhash into a shared libraryStephen Gallagher5-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.
2010-01-20License libdhash under the LGPLStephen Gallagher3-0/+844
2009-12-15Add elapi_ut.conf to the list of dist filesSumit Bose2-3/+4
Some newlines are added, too.
2009-12-10INI Correcting build warnings.Dmitri Pal2-8/+7
The previous patch included "config.h" into the public header which caused all sorts of redefinitions and warnings.
2009-12-10INI: Cleaning FIXME comments.Dmitri Pal3-7/+16
Added configurable key length. Changed comments for the functions that are currently not used and reserved for future functionality.
2009-12-10COLLECTION: Cleaning FIXME commentsDmitri Pal3-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.
2009-12-10COLLECTION Create reference to the top level collectionDmitri Pal3-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
2009-12-10COMMON Improvements to the trace macroDmitri Pal1-9/+15
Added more distingushable indication to the trace messages that represent errors.
2009-12-08Add comments to document latest changesSimo Sorce1-0/+7
2009-12-08dhash: Add private pointer for delete callbackSimo Sorce4-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.
2009-12-08Run dhash testsStephen Gallagher1-0/+2
Previously we were only building them but not running them.
2009-12-08Change dhash API to be talloc-friendlySimo Sorce3-39/+78
2009-12-01Revert "Remove ELAPI from build and tarball"Stephen Gallagher1-2/+3
This reverts commit 9a446ad6d6445ed22f0d5132a241a3c8be5e1008.
2009-12-01Revert "Stop configuring ELAPI"Stephen Gallagher1-1/+1
This reverts commit a7360aa07780133b77c7fa0ab629b5e660e1e49a.
2009-12-01Stop configuring ELAPIStephen Gallagher1-1/+1
2009-12-01Remove ELAPI from build and tarballStephen Gallagher1-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.
2009-10-29Clean up warnings in dhash testsStephen Gallagher2-9/+9
2009-10-16ELAPI Compatibility code for getifaddr()Dmitri Pal10-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.