Exemplo n.º 1
0
int a2_is_client_ready(struct annotate_two *a2)
{
    if (!a2->tgdb_initialized)
        return 0;

    /* Return 1 if the user is at the prompt */
    return (data_get_state(a2->sm) == USER_AT_PROMPT);
}
Exemplo n.º 2
0
Arquivo: a2-tgdb.c Projeto: rsenn/cgdb
int a2_is_client_ready(void *ctx) {
    struct annotate_two *a2 = (struct annotate_two *)ctx;
    if ( !a2->tgdb_initialized )
        return 0;

    /* If the user is at the prompt */
    if ( data_get_state(a2->data) == USER_AT_PROMPT )
        return 1;

    return 0;
}