int output_multi_t::pending_way(osmid_t id, int exists) {
    taglist_t tags_int;
    nodelist_t nodes_int;
    int ret = 0;

    // Try to fetch the way from the DB
    if (!m_mid->ways_get(id, tags_int, nodes_int)) {
        // Output the way
        ret = reprocess_way(id, nodes_int, tags_int, exists);
    }

    return ret;
}
Esempio n. 2
0
int output_multi_t::pending_way(osmid_t id, int exists) {
    keyval tags_int;
    osmNode *nodes_int;
    int count_int;
    int ret = 0;

    // Try to fetch the way from the DB
    if (!m_mid->ways_get(id, &tags_int, &nodes_int, &count_int)) {
        // Output the way
        ret = reprocess_way(id, nodes_int, count_int, &tags_int, exists);
        free(nodes_int);
    }
    tags_int.resetList();

    return ret;
}