ticket 851 lib/pengine/unpack.c ticket_t *ticket = NULL; ticket 860 lib/pengine/unpack.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 861 lib/pengine/unpack.c if (ticket == NULL) { ticket 862 lib/pengine/unpack.c ticket = ticket_new(ticket_id, data_set); ticket 863 lib/pengine/unpack.c if (ticket == NULL) { ticket 875 lib/pengine/unpack.c g_hash_table_replace(ticket->state, strdup(prop_name), strdup(prop_value)); ticket 878 lib/pengine/unpack.c granted = g_hash_table_lookup(ticket->state, "granted"); ticket 880 lib/pengine/unpack.c ticket->granted = TRUE; ticket 881 lib/pengine/unpack.c crm_info("We have ticket '%s'", ticket->id); ticket 883 lib/pengine/unpack.c ticket->granted = FALSE; ticket 884 lib/pengine/unpack.c crm_info("We do not have ticket '%s'", ticket->id); ticket 887 lib/pengine/unpack.c last_granted = g_hash_table_lookup(ticket->state, "last-granted"); ticket 889 lib/pengine/unpack.c ticket->last_granted = crm_parse_int(last_granted, 0); ticket 892 lib/pengine/unpack.c standby = g_hash_table_lookup(ticket->state, "standby"); ticket 894 lib/pengine/unpack.c ticket->standby = TRUE; ticket 895 lib/pengine/unpack.c if (ticket->granted) { ticket 896 lib/pengine/unpack.c crm_info("Granted ticket '%s' is in standby-mode", ticket->id); ticket 899 lib/pengine/unpack.c ticket->standby = FALSE; ticket 940 lib/pengine/unpack.c ticket_t *ticket = NULL; ticket 978 lib/pengine/unpack.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 979 lib/pengine/unpack.c if (ticket == NULL) { ticket 980 lib/pengine/unpack.c ticket = ticket_new(ticket_id, data_set); ticket 981 lib/pengine/unpack.c if (ticket == NULL) { ticket 987 lib/pengine/unpack.c g_hash_table_replace(ticket->state, state_key, strdup(value)); ticket 991 lib/pengine/unpack.c ticket->granted = TRUE; ticket 992 lib/pengine/unpack.c crm_info("We have ticket '%s'", ticket->id); ticket 994 lib/pengine/unpack.c ticket->granted = FALSE; ticket 995 lib/pengine/unpack.c crm_info("We do not have ticket '%s'", ticket->id); ticket 999 lib/pengine/unpack.c ticket->last_granted = crm_parse_int(last_granted, 0); ticket 1797 lib/pengine/utils.c ticket_t *ticket = data; ticket 1799 lib/pengine/utils.c if (ticket->state) { ticket 1800 lib/pengine/utils.c g_hash_table_destroy(ticket->state); ticket 1802 lib/pengine/utils.c free(ticket->id); ticket 1803 lib/pengine/utils.c free(ticket); ticket 1809 lib/pengine/utils.c ticket_t *ticket = NULL; ticket 1820 lib/pengine/utils.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 1821 lib/pengine/utils.c if (ticket == NULL) { ticket 1823 lib/pengine/utils.c ticket = calloc(1, sizeof(ticket_t)); ticket 1824 lib/pengine/utils.c if (ticket == NULL) { ticket 1831 lib/pengine/utils.c ticket->id = strdup(ticket_id); ticket 1832 lib/pengine/utils.c ticket->granted = FALSE; ticket 1833 lib/pengine/utils.c ticket->last_granted = -1; ticket 1834 lib/pengine/utils.c ticket->standby = FALSE; ticket 1835 lib/pengine/utils.c ticket->state = crm_str_table_new(); ticket 1837 lib/pengine/utils.c g_hash_table_insert(data_set->tickets, strdup(ticket->id), ticket); ticket 1840 lib/pengine/utils.c return ticket; ticket 2566 pengine/constraints.c rsc_ticket_new(const char *id, resource_t * rsc_lh, ticket_t * ticket, ticket 2586 pengine/constraints.c new_rsc_ticket->ticket = ticket; ticket 2595 pengine/constraints.c ticket->id); ticket 2602 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2607 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2613 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2619 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2626 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2632 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2639 pengine/constraints.c ticket->id); ticket 2645 pengine/constraints.c if (new_rsc_ticket->ticket->granted == FALSE || new_rsc_ticket->ticket->standby) { ticket 2653 pengine/constraints.c unpack_rsc_ticket_set(xmlNode * set, ticket_t * ticket, const char *loss_policy, ticket 2662 pengine/constraints.c CRM_CHECK(ticket != NULL, return FALSE); ticket 2677 pengine/constraints.c resource->id, ticket->id); ticket 2678 pengine/constraints.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy, data_set); ticket 2691 pengine/constraints.c ticket_t *ticket = NULL; ticket 2713 pengine/constraints.c ticket = g_hash_table_lookup(data_set->tickets, ticket_str); ticket 2716 pengine/constraints.c if (ticket == NULL) { ticket 2748 pengine/constraints.c rsc_ticket_new(id, rsc_lh, ticket, state_lh, loss_policy, data_set); ticket 2842 pengine/constraints.c ticket_t *ticket = NULL; ticket 2868 pengine/constraints.c ticket = g_hash_table_lookup(data_set->tickets, ticket_str); ticket 2871 pengine/constraints.c if (ticket == NULL) { ticket 2872 pengine/constraints.c ticket = ticket_new(ticket_str, data_set); ticket 2873 pengine/constraints.c if (ticket == NULL) { ticket 2891 pengine/constraints.c if (unpack_rsc_ticket_set(set, ticket, loss_policy, data_set) == FALSE) { ticket 364 pengine/master.c && (rsc_ticket->ticket->granted == FALSE || rsc_ticket->ticket->standby)) { ticket 1800 pengine/native.c if (rsc_ticket->ticket->granted && rsc_ticket->ticket->standby == FALSE) { ticket 1818 pengine/native.c rsc_lh->id, rsc_ticket->ticket->id, rsc_ticket->id, ticket 1821 pengine/native.c if (rsc_ticket->ticket->granted == FALSE && g_list_length(rsc_lh->running_on) > 0) { ticket 1861 pengine/native.c } else if (rsc_ticket->ticket->granted == FALSE) { ticket 1867 pengine/native.c } else if (rsc_ticket->ticket->standby) { ticket 72 pengine/pengine.h ticket_t *ticket; ticket 38 pengine/utils.h extern gboolean rsc_ticket_new(const char *id, resource_t * rsc_lh, ticket_t * ticket, ticket 1838 tools/crm_mon.c ticket_t *ticket = (ticket_t *) value; ticket 1844 tools/crm_mon.c print_as("* %s:\t%s%s", ticket->id, ticket 1845 tools/crm_mon.c (ticket->granted? "granted" : "revoked"), ticket 1846 tools/crm_mon.c (ticket->standby? " [standby]" : "")); ticket 1851 tools/crm_mon.c fprintf(stream, " <li>%s: %s%s", ticket->id, ticket 1852 tools/crm_mon.c (ticket->granted? "granted" : "revoked"), ticket 1853 tools/crm_mon.c (ticket->standby? " [standby]" : "")); ticket 1858 tools/crm_mon.c ticket->id, (ticket->granted? "granted" : "revoked"), ticket 1859 tools/crm_mon.c (ticket->standby? "true" : "false")); ticket 1865 tools/crm_mon.c if (ticket->last_granted > -1) { ticket 1866 tools/crm_mon.c print_nvpair(stdout, "last-granted", NULL, NULL, ticket->last_granted); ticket 68 tools/crm_ticket.c ticket_t *ticket = NULL; ticket 70 tools/crm_ticket.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 72 tools/crm_ticket.c return ticket; ticket 91 tools/crm_ticket.c print_ticket(ticket_t * ticket, gboolean raw, gboolean details) ticket 94 tools/crm_ticket.c fprintf(stdout, "%s\n", ticket->id); ticket 99 tools/crm_ticket.c ticket->id, ticket->granted ? "granted" : "revoked", ticket 100 tools/crm_ticket.c ticket->standby ? "[standby]" : " "); ticket 102 tools/crm_ticket.c if (details && g_hash_table_size(ticket->state) > 0) { ticket 110 tools/crm_ticket.c g_hash_table_iter_init(&iter, ticket->state); ticket 128 tools/crm_ticket.c if (ticket->last_granted > -1) { ticket 130 tools/crm_ticket.c print_date(ticket->last_granted); ticket 142 tools/crm_ticket.c ticket_t *ticket = NULL; ticket 146 tools/crm_ticket.c while (g_hash_table_iter_next(&iter, NULL, (void **)&ticket)) { ticket 147 tools/crm_ticket.c print_ticket(ticket, raw, details); ticket 408 tools/crm_ticket.c ticket_t *ticket = NULL; ticket 413 tools/crm_ticket.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 414 tools/crm_ticket.c if (ticket == NULL) { ticket 418 tools/crm_ticket.c *attr_value = g_hash_table_lookup(ticket->state, attr_name); ticket 521 tools/crm_ticket.c ticket_t *ticket = NULL; ticket 555 tools/crm_ticket.c ticket = find_ticket(ticket_id, data_set); ticket 562 tools/crm_ticket.c && (ticket == NULL || ticket->granted == FALSE) ticket 890 tools/crm_ticket.c ticket_t *ticket = find_ticket(ticket_id, &data_set); ticket 892 tools/crm_ticket.c if (ticket == NULL) { ticket 896 tools/crm_ticket.c rc = print_ticket(ticket, raw, details); ticket 933 tools/crm_ticket.c ticket_t *ticket = NULL; ticket 935 tools/crm_ticket.c ticket = find_ticket(ticket_id, &data_set); ticket 936 tools/crm_ticket.c if (ticket == NULL) { ticket 941 tools/crm_ticket.c if (ticket->granted) {