ObjXMPP  Check-in [fcef8e0b54]

Overview
Comment:Adjust to recent ObjFW changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fcef8e0b54b39a0593529b1e5e1056f167e69396a15cff2ea52d34f6f829cc5b
User & Date: js on 2012-12-22 16:41:23
Other Links: manifest | tags
Context
2013-01-03
21:27
Adjust to recent ObjFW changes. check-in: 21295ecf12 user: florob@babelmonkeys.de tags: trunk
2012-12-22
16:41
Adjust to recent ObjFW changes. check-in: fcef8e0b54 user: js tags: trunk
13:55
Update documentation check-in: bbd249186e user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPConnection.m from [d67ef6bb82] to [8a86240b1e].

581
582
583
584
585
586
587
588

589
590
591
592
593
594
595
581
582
583
584
585
586
587

588
589
590
591
592
593
594
595







-
+







- (OFString*)generateStanzaID
{
	return [OFString stringWithFormat: @"objxmpp_%u", lastID++];
}

-    (void)parser: (OFXMLParser*)p
  didStartElement: (OFString*)name
       withPrefix: (OFString*)prefix
	   prefix: (OFString*)prefix
	namespace: (OFString*)ns
       attributes: (OFArray*)attributes
{
	OFEnumerator *enumerator;
	OFXMLAttribute *attribute;

	if (![name isEqual: @"stream"]) {
656
657
658
659
660
661
662
663

664
665
666
667
668
669
670
656
657
658
659
660
661
662

663
664
665
666
667
668
669
670







-
+








	if ([[element namespace] isEqual: XMPP_NS_SASL])
		[self XMPP_handleSASL: element];
}

- (void)elementBuilder: (OFXMLElementBuilder*)builder
  didNotExpectCloseTag: (OFString*)name
	    withPrefix: (OFString*)prefix
		prefix: (OFString*)prefix
	     namespace: (OFString*)ns
{
	if (![name isEqual: @"stream"] || ![prefix isEqual: @"stream"] ||
	    ![ns isEqual: XMPP_NS_STREAM])
		@throw [OFMalformedXMLException
		    exceptionWithClass: [builder class]
				parser: nil];