Skip to content

Commit

Permalink
clean: pedantic: remove repeated typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Nov 8, 2023
1 parent 65f977c commit 48e09dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/libwebsockets/lws-dlo.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
* lws display_list and display_list objects (dlo)
*/

#if !defined(__LWS_DLO_H__)
#define __LWS_DLO_H__

#include <stdint.h>

struct lws_display_render_state;
Expand Down Expand Up @@ -267,8 +270,6 @@ typedef struct {
char failed;
} lws_dlo_image_t;

typedef struct lws_display_state lws_display_state_t;

typedef struct lws_displaylist {
lws_dll2_owner_t dl;
struct lws_display_state *ds;
Expand All @@ -287,7 +288,7 @@ typedef struct lws_display_render_stack {

typedef struct lws_display_render_state {
lws_sorted_usec_list_t sul; /* return to event loop statefully */
lws_display_state_t *lds; /* optional, if using lws_display */
struct lws_display_state *lds; /* optional, if using lws_display */

lws_dll2_owner_t ids;

Expand Down Expand Up @@ -460,13 +461,11 @@ typedef struct {
LWS_VISIBLE LWS_EXTERN int
lws_dlo_ss_create(lws_dlo_ss_create_info_t *i, lws_dlo_t **pdlo);

typedef struct lhp_ctx lhp_ctx_t;

LWS_VISIBLE LWS_EXTERN int
lws_dlo_ss_find(struct lws_context *cx, const char *url, lws_dlo_image_t *u);

LWS_VISIBLE LWS_EXTERN lws_stateful_ret_t
lhp_displaylist_layout(lhp_ctx_t *ctx, char reason);
lhp_displaylist_layout(struct lhp_ctx *ctx, char reason);

#define lws_dlo_image_width(_u) ((_u)->failed ? -1 : \
((_u)->type == LWSDLOSS_TYPE_JPEG ? \
Expand Down Expand Up @@ -522,3 +521,4 @@ LWS_VISIBLE LWS_EXTERN void
lws_dlo_file_destroy(struct lws_context *cx);

LWS_VISIBLE extern const struct lws_plat_file_ops lws_dlo_fops;
#endif

0 comments on commit 48e09dd

Please sign in to comment.