![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
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 |
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.
Definition in file ex_clipboard.c.
| #define CHECK | ( | cond, | |
| msg | |||
| ) |
Definition at line 37 of file ex_clipboard.c.
| int main | ( | void | ) |
Definition at line 105 of file ex_clipboard.c.
References CHECK, failures, LOG_ERR, n_clipboard_available(), N_CLIPBOARD_CLIPBOARD, n_clipboard_destroy(), n_clipboard_get(), n_clipboard_init(), N_CLIPBOARD_PRIMARY, n_clipboard_set(), and set_log_level().
Here is the call graph for this function:
|
static |
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().