![]() |
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>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().
|
static |
Definition at line 36 of file ex_clipboard.c.