You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libsxmp/man/sxmp_init.3

55 lines
1.3 KiB
Groff

.TH SXMP_INIT 3 "20 July 2015" "SXMPLv2" "SXMP Library Manual"
.SH NAME
sxmp_init \- Initialize all required globals to run sxmp library functions
.br
sxmp_finalize \- Destroy all allocated resources for SXMP operation
.br
.SH SYNOPSIS
.B #include <sxmp/sxmp.h>
.sp
int sxmp_init(void);
void sxmp_finalize(void);
.br
.sp
.SH DESCRIPTION
.B sxmp_init
will initialize all globals required to run sxmp related functions, it mostly about
openssl library initialization.
.br
.B sxmp_finalize
will destroy all resources allocated for SXMP library operation.
.SH RETURN VALUE
Always returns
.B 0
since we cannot track openssl global initialization routines.
.br
.SH ERRORS
None errors might be returned.
.SH BUGS
None known yet.
.SH EXAMPLE
None.
.SH APPLICATION USAGE
Call this function from the main thread before using sxmp library. Otherwise it will not works. There are also
useful to know if you are using other openssl functionality there are no need to initialize globals for it.
.br
If you are using openssl, don't call
.B sxmp_finalize
until you will finish with them.
.SH RATIONALE
None.
.SH SEE ALSO
.BI sxhub_create(3)
,
.BI sxhub_destroy(3)
.SH COPYRIGHT
This software licensed under GNU LGPL v3. See COPYING for further details.
.br
(c) Askele Group 2013-2015 <http://askele.com>
.SH AUTHOR
Alexander Vdolainen (vdo@askele.com)