Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_clipboard.c File Reference

n_clipboard example + self test: own the CLIPBOARD and PRIMARY selections, round-trip text through them, and prove a separate X client can fetch the text as text/plain;charset=utf-8 (the target Chromium requires) and query the served TARGETS - the case a UTF8_STRING-only backend fails. More...

#include "nilorea/n_clipboard.h"
#include "nilorea/n_log.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+ Include dependency graph for ex_clipboard.c:

Go to the source code of this file.

Macros

#define CHECK(cond, msg)
 

Functions

int main (void)
 

Variables

static int failures = 0
 

Detailed Description

n_clipboard example + self test: own the CLIPBOARD and PRIMARY selections, round-trip text through them, and prove a separate X client can fetch the text as text/plain;charset=utf-8 (the target Chromium requires) and query the served TARGETS - the case a UTF8_STRING-only backend fails.

Author
Castagnier Mickael

Definition in file ex_clipboard.c.

Macro Definition Documentation

◆ CHECK

#define CHECK (   cond,
  msg 
)
Value:
do { \
if (!(cond)) { \
printf("ex_clipboard: FAIL: %s\n", msg); \
failures++; \
} \
} while (0)
static int failures

Definition at line 37 of file ex_clipboard.c.

Function Documentation

◆ main()

Variable Documentation

◆ failures

int failures = 0
static
Examples
ex_cookies.c, ex_digest.c, ex_dns.c, ex_entropy.c, ex_gui_custom.c, ex_gui_datagrid.c, ex_gui_dropmenu.c, ex_gui_hexview.c, ex_gui_kvtable.c, ex_gui_layout_persist.c, ex_gui_multiwin.c, ex_gui_placeholder.c, ex_gui_progressbar.c, ex_gui_reentrant.c, ex_gui_splitpane.c, ex_gui_syntaxview.c, ex_gui_zorder.c, ex_hex.c, ex_html.c, ex_http2.c, ex_json.c, ex_network_sni.c, ex_pcre.c, ex_pretty.c, ex_query.c, ex_random.c, ex_url.c, and ex_x509.c.

Definition at line 36 of file ex_clipboard.c.

Referenced by approx(), expect(), expect_canon(), expect_close(), expect_close(), expect_contains(), expect_encode(), expect_eq_float(), expect_eq_int(), expect_hex(), expect_link_absent(), expect_link_present(), expect_parse_error(), expect_resolve(), expect_streq(), expect_text(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), main(), main(), test_aead(), test_boundaries(), test_build_response(), test_bytes(), test_consttime(), test_decode_errors(), test_decode_roundtrip(), test_digests(), test_empty_and_null(), test_enctype(), test_errors(), test_errors(), test_forms(), test_hmac(), test_hmac_variants(), test_hpack_guards(), test_hpack_overflow(), test_hpack_rfc_huffman(), test_hpack_rfc_requests(), test_hpack_roundtrip(), test_js_urls(), test_links(), test_parse(), test_pbkdf2(), test_preface(), test_roundtrip(), test_scripts(), test_settings(), test_sha256_hex(), test_sitemap(), test_to_text(), and test_token().