Commit Graph

10 Commits

Author SHA1 Message Date
Benjamin Dauvergne 72b778e47e Fix all cast-function-type warnings (#71400) 2022-11-21 13:28:08 +01:00
Simo Sorce 3a6b2fdee7 Fix license boilerplates
Instad of referring to an old FSF address, point the reader to the FSF
website where the latest licenses and addresses are published.

Signed-off-by: Simo Sorce <simo@redhat.com>
2013-12-03 21:55:06 +01:00
Benjamin Dauvergne 727f07b1ae Simplify useless complexity in include paths 2011-12-16 14:17:31 +01:00
Benjamin Dauvergne 80a930cc37 Utils: add function to extract/create node in lists
* lasso_extract_gtype_from_list_or_new will help for method with create
   or extend nodes in lists.
2010-06-09 16:54:49 +00:00
Benjamin Dauvergne 1ef02e3fe2 Improve safety by replacing all g_string_free use by lasso_release_gstring 2010-04-22 00:44:49 +00:00
Benjamin Dauvergne 3c8855eb66 Fix lasso_extract_gobject_from_list 2010-02-22 13:30:23 +00:00
Benjamin Dauvergne 935c724cea Utils: lasso_unref, a safe g_object_unref, and add some document about existing family of macros 2010-02-01 19:50:00 +00:00
Benjamin Dauvergne bb2f640231 Core: in utils.h, add a macros, fix existing
* lasso/utils.h:
   - add macro lasso_ref(object), if object is not null, call
     g_object_ref on it, and return the value, otherwise do nothing and
     return NULL.
   - make a better reporting of bad object release
   - change format type for __LINE__ and dest arguments in
     lasso_release_gobject warning display.
   - add a lasso_check_non_empty_string macro
   - add new macro to extract a specific node type from a list of
     GObject objects.
   - use xmlStrdup not g_strdup for lasso_assign_xml_string
   - add lasso_list_add_gstrv and lasso_check_good_rc
   - add macro lasso_list_get_first_child
   - add inline function to test empty string
   - change macro lasso_check_non_empty_string to use the new inline
     function and go to cleanup
   - fix lasso_check_non_empty_string macro
 * lasso/utils.c:
   - add lasso_gobject_is_of_type returns 0 if first parameters is a
     gobject whose GType is equal to the second parameter, and 1
     otherwise.
2010-01-04 09:13:46 +00:00
Benjamin Dauvergne fd256b2269 Docs: change the doc production and lot of other fixes
* lasso/Makefile.am:
   distribute extract_sections.py
 * docs/references/lasso/lasso.types.in: add missing class (mainly SAML2
   and ID-WSF 1.0/2.0) from docs/references/lasso.types.in

 * lasso/xml/strings.h:
   add lots of documentation, or at least documentation template to
   strings constants.
 * id-ff/login.h:
 * saml-2.0/assertion_query.h:
 * xml/xml.h:
   document undocumented enumerations.
 * lasso/errors.h:
   add proper documentation about error codes.
 * lasso/errors.c:
   new version of the lasso_strerror function
 * lasso/build_strerror.py:
   update the script that generater lasso_strerror from the
   documentation comments.

   Remove usage of OFTYPE

 * lasso/id-ff/session.c:
 * lasso/id-ff/session.h:
   remove usage of oftype, prefer gtk-introspection annotations instead.
 * lasso/id-wsf/data_service.h:
 * lasso/id-wsf/data_service.c:
   do the same.

   Add a script to build lasso-sections.txt

 * lasso/extract_sections.py:
   this script parses header files and generated lasso-sections.txt
   content for GObject class descriptions.

   Add a template file for the lasso-section.txt file

 * docs/references/lasso-sections.txt.in:
   this file serves as a base for the generation of lasso-sections.txt

   Update docs/references/Makefile.am for generating lasso-sections.txt

 * docs/references/Makefile.am:
   always rebuild template, using out of source build directory is too
   weird without it.
   call new script extract_sections.py to regenerate lasso-sections.txt
   if header files changed.

   Update lasso.sgml file with all missing sections

 * docs/reference/lasso.sgml:
   add all missing sections, mainly objects from XML schemas.

 * docs/reference/lasso-sections.txt: update it

 * *.c: add section documentation to some files.
 * lasso/xml/strings.h: fix bad usage or docbook markup
2009-08-26 15:15:07 +00:00
Benjamin Dauvergne f60b39eb9a Add new internal function to show safe extracts
- lasso/utils.c, lasso/utils.h:
   New internal api lasso_safe_prefix_string that can show any string
   taking care of escaping newlines,tabs and non-graphical ou non-ASCII
   characters.
2008-11-05 11:23:27 +00:00