-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add armv5 sample libraries for arm-unknown-linux-uclibcgnueabi-gcc
Signed-off-by: xiaowenhu <xiaowh001@126.com>
- Loading branch information
1 parent
48c3766
commit 8c5812d
Showing
100 changed files
with
41,176 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
/* | ||
* LibNoPoll: A websocket library | ||
* Copyright (C) 2017 Advanced Software Production Line, S.L. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public License | ||
* as published by the Free Software Foundation; either version 2.1 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this program; if not, write to the Free | ||
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
* 02111-1307 USA | ||
* | ||
* You may find a copy of the license under this software is released | ||
* at COPYING file. This is LGPL software: you are welcome to develop | ||
* proprietary applications using this library without any royalty or | ||
* fee but returning back any change, improvement or addition in the | ||
* form of source code, project image, documentation patches, etc. | ||
* | ||
* For commercial support on build Websocket enabled solutions | ||
* contact us: | ||
* | ||
* Postal address: | ||
* Advanced Software Production Line, S.L. | ||
* Av. Juan Carlos I, Nº13, 2ºC | ||
* Alcalá de Henares 28806 Madrid | ||
* Spain | ||
* | ||
* Email address: | ||
* info@aspl.es - http://www.aspl.es/nopoll | ||
*/ | ||
#ifndef __NOPOLL_H__ | ||
#define __NOPOLL_H__ | ||
|
||
#include <nopoll_decl.h> | ||
#include <nopoll_handlers.h> | ||
|
||
BEGIN_C_DECLS | ||
|
||
#if defined(NOPOLL_OS_WIN32) | ||
#include <nopoll_win32.h> | ||
#endif | ||
|
||
#include <nopoll_ctx.h> | ||
#include <nopoll_io.h> | ||
#include <nopoll_conn_opts.h> | ||
#include <nopoll_conn.h> | ||
#include <nopoll_msg.h> | ||
#include <nopoll_log.h> | ||
#include <nopoll_listener.h> | ||
#include <nopoll_io.h> | ||
#include <nopoll_loop.h> | ||
|
||
/** | ||
* \addtogroup nopoll_module | ||
* @{ | ||
*/ | ||
|
||
nopoll_bool nopoll_cmp (const char * string1, const char * string2); | ||
|
||
nopoll_bool nopoll_ncmp (const char * string1, const char * string2, int bytes); | ||
|
||
char * nopoll_strdup_printf (const char * chunk, ...); | ||
|
||
char * nopoll_strdup_printfv (const char * chunk, va_list args); | ||
|
||
void nopoll_trim (char * chunk, int * trimmed); | ||
|
||
void nopoll_sleep (long microseconds); | ||
|
||
void nopoll_thread_handlers (noPollMutexCreate mutex_create, | ||
noPollMutexDestroy mutex_destroy, | ||
noPollMutexLock mutex_lock, | ||
noPollMutexUnlock mutex_unlock); | ||
|
||
noPollPtr nopoll_mutex_create (void); | ||
|
||
void nopoll_mutex_lock (noPollPtr mutex); | ||
|
||
void nopoll_mutex_unlock (noPollPtr mutex); | ||
|
||
void nopoll_mutex_destroy (noPollPtr mutex); | ||
|
||
nopoll_bool nopoll_base64_encode (const char * content, | ||
int length, | ||
char * output, | ||
int * output_size); | ||
|
||
nopoll_bool nopoll_base64_decode (const char * content, | ||
int length, | ||
char * output, | ||
int * output_size); | ||
|
||
int nopoll_timeval_substract (struct timeval * a, | ||
struct timeval * b, | ||
struct timeval * result); | ||
|
||
char * nopoll_strdup (const char * buffer); | ||
|
||
nopoll_bool nopoll_nonce (char * buffer, int nonce_size); | ||
|
||
void nopoll_cleanup_library (void); | ||
|
||
int nopoll_get_bit (char byte, int position); | ||
|
||
void nopoll_set_bit (char * buffer, int position); | ||
|
||
void nopoll_show_byte (noPollCtx * ctx, char byte, const char * label); | ||
|
||
char * nopoll_int2bin (int a, char *buffer, int buf_size); | ||
|
||
void nopoll_int2bin_print (noPollCtx * ctx, int value); | ||
|
||
int nopoll_get_8bit (const char * buffer); | ||
|
||
int nopoll_get_16bit (const char * buffer); | ||
|
||
void nopoll_set_16bit (int value, char * buffer); | ||
|
||
void nopoll_set_32bit (int value, char * buffer); | ||
|
||
int nopoll_get_32bit (const char * buffer); | ||
|
||
/* @} */ | ||
|
||
END_C_DECLS | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* | ||
* Nopoll Library nopoll_config.h | ||
* Platform dependant definitions. | ||
* | ||
* This is a generated file. Please modify 'configure.in' | ||
*/ | ||
|
||
#ifndef __NOPOLL_CONFIG_H__ | ||
#define __NOPOLL_CONFIG_H__ | ||
|
||
/** | ||
* \addtogroup nopoll_decl_module | ||
* @{ | ||
*/ | ||
|
||
/** | ||
* @brief Allows to convert integer value (including constant values) | ||
* into a pointer representation. | ||
* | ||
* Use the oposite function to restore the value from a pointer to a | ||
* integer: \ref PTR_TO_INT. | ||
* | ||
* @param integer The integer value to cast to pointer. | ||
* | ||
* @return A \ref noPollPtr reference. | ||
*/ | ||
#ifndef INT_TO_PTR | ||
#define INT_TO_PTR(integer) ((noPollPtr) ((int)integer)) | ||
#endif | ||
|
||
/** | ||
* @brief Allows to convert a pointer reference (\ref noPollPtr), | ||
* which stores an integer that was stored using \ref INT_TO_PTR. | ||
* | ||
* Use the oposite function to restore the pointer value stored in the | ||
* integer value. | ||
* | ||
* @param ptr The pointer to cast to a integer value. | ||
* | ||
* @return A int value. | ||
*/ | ||
#ifndef PTR_TO_INT | ||
#define PTR_TO_INT(ptr) ((int) (ptr)) | ||
#endif | ||
|
||
/** | ||
* @brief Allows to get current platform configuration. This is used | ||
* by Nopoll library but could be used by applications built on top of | ||
* Nopoll to change its configuration based on the platform information. | ||
*/ | ||
#define NOPOLL_OS_UNIX (1) | ||
|
||
/** | ||
* @internal Allows to now if the platform support vasprintf | ||
* function. Do not use this macro as it is supposed to be for | ||
* internal use. | ||
*/ | ||
#define NOPOLL_HAVE_VASPRINTF (1) | ||
|
||
|
||
|
||
/** | ||
* @brief Indicates where we have support for SSL v.3 support. | ||
*/ | ||
#define NOPOLL_HAVE_SSLv23_ENABLED (1) | ||
|
||
/** | ||
* @brief Indicates where we have support for SSL v3.0 support. The SSLv3 protocol is deprecated and should not be used. | ||
*/ | ||
#define NOPOLL_HAVE_SSLv3_ENABLED (1) | ||
|
||
/** | ||
* @brief Indicates where we have support for TLSv1.0 support. | ||
*/ | ||
#define NOPOLL_HAVE_TLSv10_ENABLED (1) | ||
|
||
/** | ||
* @brief Indicates where we have support for TLSv1.1 support. | ||
*/ | ||
#define NOPOLL_HAVE_TLSv11_ENABLED (1) | ||
|
||
/** | ||
* @brief Indicates where we have support for TLSv1.2 support. | ||
*/ | ||
#define NOPOLL_HAVE_TLSv12_ENABLED (1) | ||
|
||
|
||
|
||
/* @} */ | ||
|
||
#endif |
Oops, something went wrong.