18#include <glade/glade.h>
28static ssize_t
outfn(
void *sp,
const char *buf,
size_t nbyte,
void *dp)
34 glade_xml_get_widget(
xml,
"gvprtextoutput"), buf,
37 glade_xml_get_widget(
xml,
"mainconsole"), buf, nbyte);
38 return (ssize_t)nbyte;
56 assert(argc <= INT_MAX);
60 fprintf(stderr,
"Error in gvpr\n");
61 }
else if (
opts.n_outgraphs)
67 if (
opts.n_outgraphs > 1)
68 fprintf(stderr,
"Warning: multiple output graphs-discarded\n");
69 for (
size_t i = 1; i <
opts.n_outgraphs; i++) {
static void agxbfree(agxbuf *xb)
free any malloced resources
static int agxbprint(agxbuf *xb, const char *fmt,...)
Printf-style output to an agxbuf.
static WUR char * agxbuse(agxbuf *xb)
int agclose(Agraph_t *g)
deletes a graph, freeing its associated storage
void append_textview(GtkTextView *textv, const char *s, size_t bytes)
int gvpr(int argc, char *argv[], gvpropts *uopts)
graph pattern scanning and processing language API, main function gvpr
static ssize_t outfn(void *sp, const char *buf, size_t nbyte, void *dp)
int run_gvpr(Agraph_t *srcGraph, size_t argc, char *argv[])
void update_graph_from_settings(Agraph_t *g)
void updateRecord(Agraph_t *g)
void refreshViewport(void)
int add_graph_to_viewport(Agraph_t *graph, char *id)