libpurple/protocols/mxit/formcmds.c

branch
release-2.x.y
changeset 33831
d160ede64878
parent 33816
9eb08b587d95
child 33843
20d3040431eb
child 33844
e8edfd4e26ae
equal deleted inserted replaced
33830:36a1ce60ce7b 33831:d160ede64878
475 * [::op=csc|bhvr=|menu=<menu>|col=<colors>:] 475 * [::op=csc|bhvr=|menu=<menu>|col=<colors>:]
476 * where: 476 * where:
477 * menu ::= <menuitem> { ";" <menuitem> } 477 * menu ::= <menuitem> { ";" <menuitem> }
478 * menuitem ::= { type "," <text> "," <name> "," <meta> } 478 * menuitem ::= { type "," <text> "," <name> "," <meta> }
479 * colors ::= <color> { ";" <color> } 479 * colors ::= <color> { ";" <color> }
480 * color ::= <colorid> "," <ARGB hex color> 480 * color ::= <colorid> "," <ARGB hex color>
481 * 481 *
482 * @param session The MXit session object 482 * @param session The MXit session object
483 * @param from The sender of the message. 483 * @param from The sender of the message.
484 * @param hash The MXit command <key,value> map 484 * @param hash The MXit command <key,value> map
485 */ 485 */
530 /* table name */ 530 /* table name */
531 name = g_hash_table_lookup(hash, "nm"); 531 name = g_hash_table_lookup(hash, "nm");
532 532
533 /* number of columns */ 533 /* number of columns */
534 tmp = g_hash_table_lookup(hash, "col"); 534 tmp = g_hash_table_lookup(hash, "col");
535 nr_columns = atoi(tmp); 535 nr_columns = atoi(tmp);
536 536
537 /* number of rows */ 537 /* number of rows */
538 tmp = g_hash_table_lookup(hash, "row"); 538 tmp = g_hash_table_lookup(hash, "row");
539 nr_rows = atoi(tmp); 539 nr_rows = atoi(tmp);
540 540

mercurial