blob: bb7a8ebdb32a528f22c0be218a75fd6616c2e944 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*******************************************************************************
* Copyright (c) 2016 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
/*
* Hook definition for LWS callback. This hook can be used to plug your own
* code in the various libwebsockets hooks. For more information about the possible
* value for those hooks refer to libwebsockets documentation. The return
* value is either ignored or a value different from 0 indicates an error.
* The arguments are exactly the same as for libwebsockets hook except for the first
* one which provides a pointer to a location where you can store callback specific data.
*/
#ifndef LWS_CALLBACK_USER_HOOK
#define LWS_CALLBACK_USER_HOOK(arg, wsi, reason, user, in, len) (0)
#endif
|