| 205 char *guid = NULL; |
205 char *guid = NULL; |
| 206 |
206 |
| 207 conn = nm_user_get_conn(user); |
207 conn = nm_user_get_conn(user); |
| 208 |
208 |
| 209 /* Read the conference guid */ |
209 /* Read the conference guid */ |
| 210 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
210 rc = nm_read_uint32(conn, &size); |
| 211 if (rc == NM_OK) { |
211 if (rc == NM_OK) { |
| 212 guid = g_new0(char, size + 1); |
212 guid = g_new0(char, size + 1); |
| 213 rc = nm_read_all(conn, guid, size); |
213 rc = nm_read_all(conn, guid, size); |
| 214 } |
214 } |
| 215 |
215 |
| 216 /* Read the conference flags */ |
216 /* Read the conference flags */ |
| 217 if (rc == NM_OK) { |
217 if (rc == NM_OK) { |
| 218 rc = nm_read_all(conn, (char *) &flags, sizeof(flags)); |
218 rc = nm_read_uint32(conn, &flags); |
| 219 } |
219 } |
| 220 |
220 |
| 221 /* Read the message text */ |
221 /* Read the message text */ |
| 222 if (rc == NM_OK) { |
222 if (rc == NM_OK) { |
| 223 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
223 rc = nm_read_uint32(conn, &size); |
| 224 if (rc == NM_OK) { |
224 if (rc == NM_OK) { |
| 225 |
225 |
| 226 msg = g_new0(char, size + 1); |
226 msg = g_new0(char, size + 1); |
| 227 rc = nm_read_all(conn, msg, size); |
227 rc = nm_read_all(conn, msg, size); |
| 228 |
228 |
| 320 NMUserRecord *user_record; |
320 NMUserRecord *user_record; |
| 321 |
321 |
| 322 conn = nm_user_get_conn(user); |
322 conn = nm_user_get_conn(user); |
| 323 |
323 |
| 324 /* Read the conference guid */ |
324 /* Read the conference guid */ |
| 325 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
325 rc = nm_read_uint32(conn, &size); |
| 326 if (rc == NM_OK) { |
326 if (rc == NM_OK) { |
| 327 guid = g_new0(char, size + 1); |
327 guid = g_new0(char, size + 1); |
| 328 rc = nm_read_all(conn, guid, size); |
328 rc = nm_read_all(conn, guid, size); |
| 329 } |
329 } |
| 330 |
330 |
| 331 /* Read the the message */ |
331 /* Read the the message */ |
| 332 if (rc == NM_OK) { |
332 if (rc == NM_OK) { |
| 333 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
333 rc = nm_read_uint32(conn, &size); |
| 334 if (rc == NM_OK) { |
334 if (rc == NM_OK) { |
| 335 msg = g_new0(char, size + 1); |
335 msg = g_new0(char, size + 1); |
| 336 rc = nm_read_all(conn, msg, size); |
336 rc = nm_read_all(conn, msg, size); |
| 337 } |
337 } |
| 338 } |
338 } |
| 395 NMUserRecord *user_record; |
395 NMUserRecord *user_record; |
| 396 |
396 |
| 397 conn = nm_user_get_conn(user); |
397 conn = nm_user_get_conn(user); |
| 398 |
398 |
| 399 /* Read the conference guid */ |
399 /* Read the conference guid */ |
| 400 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
400 rc = nm_read_uint32(conn, &size); |
| 401 if (rc == NM_OK) { |
401 if (rc == NM_OK) { |
| 402 guid = g_new0(char, size + 1); |
402 guid = g_new0(char, size + 1); |
| 403 rc = nm_read_all(conn, guid, size); |
403 rc = nm_read_all(conn, guid, size); |
| 404 } |
404 } |
| 405 |
405 |
| 445 NMConference *conference; |
445 NMConference *conference; |
| 446 |
446 |
| 447 conn = nm_user_get_conn(user); |
447 conn = nm_user_get_conn(user); |
| 448 |
448 |
| 449 /* Read the conference guid */ |
449 /* Read the conference guid */ |
| 450 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
450 rc = nm_read_uint32(conn, &size); |
| 451 if (rc == NM_OK) { |
451 if (rc == NM_OK) { |
| 452 guid = g_new0(char, size + 1); |
452 guid = g_new0(char, size + 1); |
| 453 rc = nm_read_all(conn, guid, size); |
453 rc = nm_read_all(conn, guid, size); |
| 454 } |
454 } |
| 455 |
455 |
| 482 NMConn *conn; |
482 NMConn *conn; |
| 483 |
483 |
| 484 conn = nm_user_get_conn(user); |
484 conn = nm_user_get_conn(user); |
| 485 |
485 |
| 486 /* Read the conference guid */ |
486 /* Read the conference guid */ |
| 487 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
487 rc = nm_read_uint32(conn, &size); |
| 488 if (rc == NM_OK) { |
488 if (rc == NM_OK) { |
| 489 guid = g_new0(char, size + 1); |
489 guid = g_new0(char, size + 1); |
| 490 rc = nm_read_all(conn, guid, size); |
490 rc = nm_read_all(conn, guid, size); |
| 491 } |
491 } |
| 492 |
492 |
| 493 /* Read the conference flags */ |
493 /* Read the conference flags */ |
| 494 if (rc == NM_OK) { |
494 if (rc == NM_OK) { |
| 495 rc = nm_read_all(conn, (char *) &flags, sizeof(flags)); |
495 rc = nm_read_uint32(conn, &flags); |
| 496 } |
496 } |
| 497 |
497 |
| 498 if (rc == NM_OK) { |
498 if (rc == NM_OK) { |
| 499 conference = nm_conference_list_find(user, guid); |
499 conference = nm_conference_list_find(user, guid); |
| 500 if (conference) { |
500 if (conference) { |
| 530 NMConn *conn; |
530 NMConn *conn; |
| 531 |
531 |
| 532 conn = nm_user_get_conn(user); |
532 conn = nm_user_get_conn(user); |
| 533 |
533 |
| 534 /* Read the conference guid */ |
534 /* Read the conference guid */ |
| 535 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
535 rc = nm_read_uint32(conn, &size); |
| 536 if (rc == NM_OK) { |
536 if (rc == NM_OK) { |
| 537 guid = g_new0(char, size + 1); |
537 guid = g_new0(char, size + 1); |
| 538 rc = nm_read_all(conn, guid, size); |
538 rc = nm_read_all(conn, guid, size); |
| 539 } |
539 } |
| 540 |
540 |
| 568 NMUserRecord *user_record; |
568 NMUserRecord *user_record; |
| 569 |
569 |
| 570 conn = nm_user_get_conn(user); |
570 conn = nm_user_get_conn(user); |
| 571 |
571 |
| 572 /* Read the conference guid */ |
572 /* Read the conference guid */ |
| 573 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
573 rc = nm_read_uint32(conn, &size); |
| 574 if (rc == NM_OK) { |
574 if (rc == NM_OK) { |
| 575 guid = g_new0(char, size + 1); |
575 guid = g_new0(char, size + 1); |
| 576 rc = nm_read_all(conn, guid, size); |
576 rc = nm_read_all(conn, guid, size); |
| 577 } |
577 } |
| 578 |
578 |
| 579 /* Read the conference flags */ |
579 /* Read the conference flags */ |
| 580 if (rc == NM_OK) { |
580 if (rc == NM_OK) { |
| 581 rc = nm_read_all(conn, (char *) &flags, sizeof(flags)); |
581 rc = nm_read_uint32(conn, &flags); |
| 582 } |
582 } |
| 583 |
583 |
| 584 if (rc == NM_OK) { |
584 if (rc == NM_OK) { |
| 585 conference = nm_conference_list_find(user, guid); |
585 conference = nm_conference_list_find(user, guid); |
| 586 if (conference) { |
586 if (conference) { |
| 623 NMConn *conn; |
623 NMConn *conn; |
| 624 |
624 |
| 625 conn = nm_user_get_conn(user); |
625 conn = nm_user_get_conn(user); |
| 626 |
626 |
| 627 /* Read the conference guid */ |
627 /* Read the conference guid */ |
| 628 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
628 rc = nm_read_uint32(conn, &size); |
| 629 if (rc == NM_OK) { |
629 if (rc == NM_OK) { |
| 630 guid = g_new0(char, size + 1); |
630 guid = g_new0(char, size + 1); |
| 631 rc = nm_read_all(conn, guid, size); |
631 rc = nm_read_all(conn, guid, size); |
| 632 } |
632 } |
| 633 |
633 |
| 660 NMConn *conn; |
660 NMConn *conn; |
| 661 |
661 |
| 662 conn = nm_user_get_conn(user); |
662 conn = nm_user_get_conn(user); |
| 663 |
663 |
| 664 /* Read new status */ |
664 /* Read new status */ |
| 665 rc = nm_read_all(conn, (char *) &status, sizeof(status)); |
665 rc = nm_read_uint16(conn, &status); |
| 666 if (rc == NM_OK) { |
666 if (rc == NM_OK) { |
| 667 |
667 |
| 668 /* Read the status text */ |
668 /* Read the status text */ |
| 669 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
669 rc = nm_read_uint32(conn, &size); |
| 670 if (rc == NM_OK) { |
670 if (rc == NM_OK) { |
| 671 if (size > 0) { |
671 if (size > 0) { |
| 672 text = g_new0(char, size + 1); |
672 text = g_new0(char, size + 1); |
| 673 rc = nm_read_all(conn, text, size); |
673 rc = nm_read_all(conn, text, size); |
| 674 } |
674 } |
| 702 NMConn *conn; |
702 NMConn *conn; |
| 703 |
703 |
| 704 conn = nm_user_get_conn(user); |
704 conn = nm_user_get_conn(user); |
| 705 |
705 |
| 706 /* Read the conference guid */ |
706 /* Read the conference guid */ |
| 707 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
707 rc = nm_read_uint32(conn, &size); |
| 708 if (rc == NM_OK) { |
708 if (rc == NM_OK) { |
| 709 guid = g_new0(char, size + 1); |
709 guid = g_new0(char, size + 1); |
| 710 rc = nm_read_all(conn, guid, size); |
710 rc = nm_read_all(conn, guid, size); |
| 711 } |
711 } |
| 712 |
712 |
| 862 return NMERR_PROTOCOL; |
862 return NMERR_PROTOCOL; |
| 863 |
863 |
| 864 conn = nm_user_get_conn(user); |
864 conn = nm_user_get_conn(user); |
| 865 |
865 |
| 866 /* Read the event source */ |
866 /* Read the event source */ |
| 867 rc = nm_read_all(conn, (char *) &size, sizeof(size)); |
867 rc = nm_read_uint32(conn, &size); |
| 868 if (rc == NM_OK) { |
868 if (rc == NM_OK) { |
| 869 if (size > 0) { |
869 if (size > 0) { |
| 870 source = g_new0(char, size); |
870 source = g_new0(char, size); |
| 871 |
871 |
| 872 rc = nm_read_all(conn, source, size); |
872 rc = nm_read_all(conn, source, size); |