Browse Source

Remove obsolete svn directories.

tags/r14.0.0^0
Darrell Anderson 6 years ago
parent
commit
074fd7751d

+ 0
- 137
src/.svn/all-wcprops View File

@@ -1,137 +0,0 @@
1
-K 25
2
-svn:wc:ra_dav:version-url
3
-V 40
4
-/svnroot/libcaldav/!svn/ver/42/trunk/src
5
-END
6
-delete-caldav-object.c
7
-K 25
8
-svn:wc:ra_dav:version-url
9
-V 63
10
-/svnroot/libcaldav/!svn/ver/41/trunk/src/delete-caldav-object.c
11
-END
12
-caldav.h
13
-K 25
14
-svn:wc:ra_dav:version-url
15
-V 49
16
-/svnroot/libcaldav/!svn/ver/39/trunk/src/caldav.h
17
-END
18
-get-display-name.c
19
-K 25
20
-svn:wc:ra_dav:version-url
21
-V 59
22
-/svnroot/libcaldav/!svn/ver/41/trunk/src/get-display-name.c
23
-END
24
-Makefile.in
25
-K 25
26
-svn:wc:ra_dav:version-url
27
-V 52
28
-/svnroot/libcaldav/!svn/ver/42/trunk/src/Makefile.in
29
-END
30
-delete-caldav-object.h
31
-K 25
32
-svn:wc:ra_dav:version-url
33
-V 62
34
-/svnroot/libcaldav/!svn/ver/1/trunk/src/delete-caldav-object.h
35
-END
36
-get-display-name.h
37
-K 25
38
-svn:wc:ra_dav:version-url
39
-V 58
40
-/svnroot/libcaldav/!svn/ver/1/trunk/src/get-display-name.h
41
-END
42
-get-caldav-report.c
43
-K 25
44
-svn:wc:ra_dav:version-url
45
-V 60
46
-/svnroot/libcaldav/!svn/ver/41/trunk/src/get-caldav-report.c
47
-END
48
-modify-caldav-object.c
49
-K 25
50
-svn:wc:ra_dav:version-url
51
-V 63
52
-/svnroot/libcaldav/!svn/ver/41/trunk/src/modify-caldav-object.c
53
-END
54
-lock-caldav-object.c
55
-K 25
56
-svn:wc:ra_dav:version-url
57
-V 61
58
-/svnroot/libcaldav/!svn/ver/41/trunk/src/lock-caldav-object.c
59
-END
60
-add-caldav-object.c
61
-K 25
62
-svn:wc:ra_dav:version-url
63
-V 60
64
-/svnroot/libcaldav/!svn/ver/41/trunk/src/add-caldav-object.c
65
-END
66
-get-caldav-report.h
67
-K 25
68
-svn:wc:ra_dav:version-url
69
-V 60
70
-/svnroot/libcaldav/!svn/ver/39/trunk/src/get-caldav-report.h
71
-END
72
-md5.c
73
-K 25
74
-svn:wc:ra_dav:version-url
75
-V 45
76
-/svnroot/libcaldav/!svn/ver/1/trunk/src/md5.c
77
-END
78
-options-caldav-server.c
79
-K 25
80
-svn:wc:ra_dav:version-url
81
-V 64
82
-/svnroot/libcaldav/!svn/ver/41/trunk/src/options-caldav-server.c
83
-END
84
-caldav-utils.c
85
-K 25
86
-svn:wc:ra_dav:version-url
87
-V 55
88
-/svnroot/libcaldav/!svn/ver/42/trunk/src/caldav-utils.c
89
-END
90
-Makefile.am
91
-K 25
92
-svn:wc:ra_dav:version-url
93
-V 52
94
-/svnroot/libcaldav/!svn/ver/39/trunk/src/Makefile.am
95
-END
96
-modify-caldav-object.h
97
-K 25
98
-svn:wc:ra_dav:version-url
99
-V 62
100
-/svnroot/libcaldav/!svn/ver/1/trunk/src/modify-caldav-object.h
101
-END
102
-lock-caldav-object.h
103
-K 25
104
-svn:wc:ra_dav:version-url
105
-V 60
106
-/svnroot/libcaldav/!svn/ver/9/trunk/src/lock-caldav-object.h
107
-END
108
-add-caldav-object.h
109
-K 25
110
-svn:wc:ra_dav:version-url
111
-V 59
112
-/svnroot/libcaldav/!svn/ver/1/trunk/src/add-caldav-object.h
113
-END
114
-caldav.c
115
-K 25
116
-svn:wc:ra_dav:version-url
117
-V 49
118
-/svnroot/libcaldav/!svn/ver/39/trunk/src/caldav.c
119
-END
120
-md5.h
121
-K 25
122
-svn:wc:ra_dav:version-url
123
-V 45
124
-/svnroot/libcaldav/!svn/ver/1/trunk/src/md5.h
125
-END
126
-options-caldav-server.h
127
-K 25
128
-svn:wc:ra_dav:version-url
129
-V 64
130
-/svnroot/libcaldav/!svn/ver/10/trunk/src/options-caldav-server.h
131
-END
132
-caldav-utils.h
133
-K 25
134
-svn:wc:ra_dav:version-url
135
-V 55
136
-/svnroot/libcaldav/!svn/ver/34/trunk/src/caldav-utils.h
137
-END

+ 0
- 776
src/.svn/entries View File

@@ -1,776 +0,0 @@
1
-10
2
-
3
-dir
4
-42
5
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav/trunk/src
6
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav
7
-
8
-
9
-
10
-2010-05-29T15:45:56.236020Z
11
-42
12
-miras
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-6bb92309-7149-0410-b568-bc30dfd0a1d5
28
-
29
-delete-caldav-object.c
30
-file
31
-
32
-
33
-
34
-
35
-2010-05-31T07:07:58.000000Z
36
-fab35eb73b0fb9581aa487decd83b6c6
37
-2010-05-25T20:53:04.081178Z
38
-41
39
-miras
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-8643
62
-
63
-caldav.h
64
-file
65
-
66
-
67
-
68
-
69
-2010-05-31T07:07:58.000000Z
70
-8b27bf73c1c7bb060ad21312f5f9af05
71
-2010-05-23T20:43:55.305076Z
72
-39
73
-miras
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-11331
96
-
97
-get-display-name.c
98
-file
99
-
100
-
101
-
102
-
103
-2010-05-31T07:07:58.000000Z
104
-e605700922c480f35815279a20484248
105
-2010-05-25T20:53:04.081178Z
106
-41
107
-miras
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-4631
130
-
131
-Makefile.in
132
-file
133
-
134
-
135
-
136
-
137
-2010-05-31T07:07:58.000000Z
138
-dd17920f8308f34a5cb6f4c546fb59ea
139
-2010-05-29T15:45:56.236020Z
140
-42
141
-miras
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-21254
164
-
165
-delete-caldav-object.h
166
-file
167
-
168
-
169
-
170
-
171
-2010-05-31T07:07:58.000000Z
172
-a73e19682e34e9c903940f3f0fd48435
173
-2008-03-29T18:04:01.076545Z
174
-1
175
-miras
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-1244
198
-
199
-get-display-name.h
200
-file
201
-
202
-
203
-
204
-
205
-2010-05-31T07:07:58.000000Z
206
-78c67f8d08738e976c2decb360d90eac
207
-2008-03-29T18:04:01.076545Z
208
-1
209
-miras
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-1240
232
-
233
-get-caldav-report.c
234
-file
235
-
236
-
237
-
238
-
239
-2010-05-31T07:07:58.000000Z
240
-fd4ef5b191fc0b3a7ea76b14a078e06c
241
-2010-05-25T20:53:04.081178Z
242
-41
243
-miras
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-8572
266
-
267
-modify-caldav-object.c
268
-file
269
-
270
-
271
-
272
-
273
-2010-05-31T07:07:58.000000Z
274
-18119fb7cabfe0a193035aad23ccacef
275
-2010-05-25T20:53:04.081178Z
276
-41
277
-miras
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-8992
300
-
301
-lock-caldav-object.c
302
-file
303
-
304
-
305
-
306
-
307
-2010-05-31T07:07:58.000000Z
308
-d94186940ab1caf2a060ae6bc4a836ca
309
-2010-05-25T20:53:04.081178Z
310
-41
311
-miras
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-9360
334
-
335
-add-caldav-object.c
336
-file
337
-
338
-
339
-
340
-
341
-2010-05-31T07:07:58.000000Z
342
-9272e45b03647c432efbc8d8a6217537
343
-2010-05-25T20:53:04.081178Z
344
-41
345
-miras
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-4341
368
-
369
-get-caldav-report.h
370
-file
371
-
372
-
373
-
374
-
375
-2010-05-31T07:07:58.000000Z
376
-4063fdac318ff1c4b8d5845fd6d526f3
377
-2010-05-23T20:43:55.305076Z
378
-39
379
-miras
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
-
400
-
401
-1609
402
-
403
-md5.c
404
-file
405
-
406
-
407
-
408
-
409
-2010-05-31T07:07:58.000000Z
410
-4c393b2163ae5ab0d8461709e4680b68
411
-2008-03-29T18:04:01.076545Z
412
-1
413
-miras
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-11719
436
-
437
-options-caldav-server.c
438
-file
439
-
440
-
441
-
442
-
443
-2010-05-31T07:07:58.000000Z
444
-bca50708fda598af1cf6c3171bf01e0d
445
-2010-05-25T20:53:04.081178Z
446
-41
447
-miras
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-4545
470
-
471
-Makefile.am
472
-file
473
-
474
-
475
-
476
-
477
-2010-05-31T07:07:58.000000Z
478
-d4e689953457ac1f09d9bc85d4d3e855
479
-2010-05-23T20:43:55.305076Z
480
-39
481
-miras
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-1098
504
-
505
-modify-caldav-object.h
506
-file
507
-
508
-
509
-
510
-
511
-2010-05-31T07:07:58.000000Z
512
-7369d16e16cb3d208a3d576f69685f76
513
-2008-03-29T18:04:01.076545Z
514
-1
515
-miras
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-1244
538
-
539
-caldav-utils.c
540
-file
541
-
542
-
543
-
544
-
545
-2010-05-31T07:07:58.000000Z
546
-fb4b55bfc19b10aba28e8e047a9493bc
547
-2010-05-29T15:45:56.236020Z
548
-42
549
-miras
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-17444
572
-
573
-lock-caldav-object.h
574
-file
575
-
576
-
577
-
578
-
579
-2010-05-31T07:07:58.000000Z
580
-1f07eba06bb4fe89eb8c42a6fb67df55
581
-2008-04-07T22:11:32.666799Z
582
-9
583
-miras
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
-2088
606
-
607
-add-caldav-object.h
608
-file
609
-
610
-
611
-
612
-
613
-2010-05-31T07:07:58.000000Z
614
-4f4e1336005bc1eb283696d92ce6075f
615
-2008-03-29T18:04:01.076545Z
616
-1
617
-miras
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-1236
640
-
641
-caldav.c
642
-file
643
-
644
-
645
-
646
-
647
-2010-05-31T07:07:58.000000Z
648
-6307ba82867c515caa761ea0e03c9e0d
649
-2010-05-23T20:43:55.305076Z
650
-39
651
-miras
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-21199
674
-
675
-md5.h
676
-file
677
-
678
-
679
-
680
-
681
-2010-05-31T07:07:58.000000Z
682
-5238bb8df57b98358aa184bb97d686d5
683
-2008-03-29T18:04:01.076545Z
684
-1
685
-miras
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
-
699
-
700
-
701
-
702
-
703
-
704
-
705
-
706
-
707
-1517
708
-
709
-options-caldav-server.h
710
-file
711
-
712
-
713
-
714
-
715
-2010-05-31T07:07:58.000000Z
716
-100c2c473b064d0b0c99135a3f8c8992
717
-2010-02-27T11:17:33.222356Z
718
-10
719
-miras
720
-
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-1774
742
-
743
-caldav-utils.h
744
-file
745
-
746
-
747
-
748
-
749
-2010-05-31T07:07:58.000000Z
750
-790120ed34d83d7a82dd21e6543c65fc
751
-2010-04-07T22:56:57.177660Z
752
-34
753
-miras
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-5300
776
-

+ 0
- 53
src/.svn/text-base/Makefile.am.svn-base View File

@@ -1,53 +0,0 @@
1
-AUTOMAKE_OPTIONS = gnu
2
-
3
-INCLUDES = @CURL_CFLAGS@ @GLIB_CFLAGS@ \
4
-		   -I$(top_srcdir) -I$(top_builddir)
5
-
6
-if STATIC_LINK
7
-noinst_LTLIBRARIES = libcaldav.la
8
-endif
9
-
10
-if DYNAMIC_LINK
11
-lib_LTLIBRARIES = libcaldav.la
12
-endif
13
-
14
-libcaldav_la_LDFLAGS = -version-info @LIBVERSION@
15
-
16
-libcaldav_la_SOURCES = \
17
-			caldav.h \
18
-			caldav.c \
19
-			add-caldav-object.c \
20
-			add-caldav-object.h \
21
-			delete-caldav-object.c \
22
-			delete-caldav-object.h \
23
-			modify-caldav-object.c \
24
-			modify-caldav-object.h \
25
-			get-caldav-report.c \
26
-			get-caldav-report.h \
27
-			get-display-name.c \
28
-			get-display-name.h \
29
-			caldav-utils.c \
30
-			caldav-utils.h \
31
-			md5.c \
32
-			md5.h \
33
-			options-caldav-server.c \
34
-			options-caldav-server.h \
35
-			lock-caldav-object.c \
36
-			lock-caldav-object.h \
37
-			get-freebusy-report.c \
38
-			get-freebusy-report.h
39
-
40
-libcaldav_includedir=$(includedir)/libcaldav-@VERSION@
41
-libcaldav_include_HEADERS = caldav.h
42
-
43
-noinst_HEADERS = \
44
-			add-caldav-object.h \
45
-			delete-caldav-object.h \
46
-			modify-caldav-object.h \
47
-			get-caldav-report.h \
48
-			caldav-utils.h
49
-
50
-libcaldav_la_LIBADD = \
51
-			@CURL_LIBS@ \
52
-			@GLIB_LIBS@
53
-

+ 0
- 649
src/.svn/text-base/Makefile.in.svn-base View File

@@ -1,649 +0,0 @@
1
-# Makefile.in generated by automake 1.11.1 from Makefile.am.
2
-# @configure_input@
3
-
4
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
6
-# Inc.
7
-# This Makefile.in is free software; the Free Software Foundation
8
-# gives unlimited permission to copy and/or distribute it,
9
-# with or without modifications, as long as this notice is preserved.
10
-
11
-# This program is distributed in the hope that it will be useful,
12
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
-# PARTICULAR PURPOSE.
15
-
16
-@SET_MAKE@
17
-
18
-
19
-VPATH = @srcdir@
20
-pkgdatadir = $(datadir)/@PACKAGE@
21
-pkgincludedir = $(includedir)/@PACKAGE@
22
-pkglibdir = $(libdir)/@PACKAGE@
23
-pkglibexecdir = $(libexecdir)/@PACKAGE@
24
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25
-install_sh_DATA = $(install_sh) -c -m 644
26
-install_sh_PROGRAM = $(install_sh) -c
27
-install_sh_SCRIPT = $(install_sh) -c
28
-INSTALL_HEADER = $(INSTALL_DATA)
29
-transform = $(program_transform_name)
30
-NORMAL_INSTALL = :
31
-PRE_INSTALL = :
32
-POST_INSTALL = :
33
-NORMAL_UNINSTALL = :
34
-PRE_UNINSTALL = :
35
-POST_UNINSTALL = :
36
-build_triplet = @build@
37
-host_triplet = @host@
38
-target_triplet = @target@
39
-subdir = src
40
-DIST_COMMON = $(libcaldav_include_HEADERS) $(noinst_HEADERS) \
41
-	$(srcdir)/Makefile.am $(srcdir)/Makefile.in
42
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
44
-	$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
45
-	$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
46
-	$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
47
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48
-	$(ACLOCAL_M4)
49
-mkinstalldirs = $(install_sh) -d
50
-CONFIG_HEADER = $(top_builddir)/config.h
51
-CONFIG_CLEAN_FILES =
52
-CONFIG_CLEAN_VPATH_FILES =
53
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
54
-am__vpath_adj = case $$p in \
55
-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
56
-    *) f=$$p;; \
57
-  esac;
58
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
59
-am__install_max = 40
60
-am__nobase_strip_setup = \
61
-  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
62
-am__nobase_strip = \
63
-  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
64
-am__nobase_list = $(am__nobase_strip_setup); \
65
-  for p in $$list; do echo "$$p $$p"; done | \
66
-  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
67
-  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
68
-    if (++n[$$2] == $(am__install_max)) \
69
-      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
70
-    END { for (dir in files) print dir, files[dir] }'
71
-am__base_list = \
72
-  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
73
-  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
74
-am__installdirs = "$(DESTDIR)$(libdir)" \
75
-	"$(DESTDIR)$(libcaldav_includedir)"
76
-LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
77
-libcaldav_la_DEPENDENCIES =
78
-am_libcaldav_la_OBJECTS = caldav.lo add-caldav-object.lo \
79
-	delete-caldav-object.lo modify-caldav-object.lo \
80
-	get-caldav-report.lo get-display-name.lo caldav-utils.lo \
81
-	md5.lo options-caldav-server.lo lock-caldav-object.lo \
82
-	get-freebusy-report.lo
83
-libcaldav_la_OBJECTS = $(am_libcaldav_la_OBJECTS)
84
-libcaldav_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
85
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
86
-	$(libcaldav_la_LDFLAGS) $(LDFLAGS) -o $@
87
-@DYNAMIC_LINK_TRUE@am_libcaldav_la_rpath = -rpath $(libdir)
88
-@STATIC_LINK_TRUE@am_libcaldav_la_rpath =
89
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
90
-depcomp = $(SHELL) $(top_srcdir)/depcomp
91
-am__depfiles_maybe = depfiles
92
-am__mv = mv -f
93
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
94
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
95
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
96
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
97
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
98
-CCLD = $(CC)
99
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
100
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
101
-	$(LDFLAGS) -o $@
102
-SOURCES = $(libcaldav_la_SOURCES)
103
-DIST_SOURCES = $(libcaldav_la_SOURCES)
104
-HEADERS = $(libcaldav_include_HEADERS) $(noinst_HEADERS)
105
-ETAGS = etags
106
-CTAGS = ctags
107
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
108
-ACLOCAL = @ACLOCAL@
109
-AMTAR = @AMTAR@
110
-AR = @AR@
111
-AUTOCONF = @AUTOCONF@
112
-AUTOHEADER = @AUTOHEADER@
113
-AUTOMAKE = @AUTOMAKE@
114
-AWK = @AWK@
115
-CC = @CC@
116
-CCDEPMODE = @CCDEPMODE@
117
-CFLAGS = @CFLAGS@
118
-CPP = @CPP@
119
-CPPFLAGS = @CPPFLAGS@
120
-CURL_CFLAGS = @CURL_CFLAGS@
121
-CURL_LIBS = @CURL_LIBS@
122
-CYGPATH_W = @CYGPATH_W@
123
-DEFS = @DEFS@
124
-DEPDIR = @DEPDIR@
125
-DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
126
-DSYMUTIL = @DSYMUTIL@
127
-DUMPBIN = @DUMPBIN@
128
-DX_CONFIG = @DX_CONFIG@
129
-DX_DOCDIR = @DX_DOCDIR@
130
-DX_DOT = @DX_DOT@
131
-DX_DOXYGEN = @DX_DOXYGEN@
132
-DX_DVIPS = @DX_DVIPS@
133
-DX_EGREP = @DX_EGREP@
134
-DX_ENV = @DX_ENV@
135
-DX_FLAG_chi = @DX_FLAG_chi@
136
-DX_FLAG_chm = @DX_FLAG_chm@
137
-DX_FLAG_doc = @DX_FLAG_doc@
138
-DX_FLAG_dot = @DX_FLAG_dot@
139
-DX_FLAG_html = @DX_FLAG_html@
140
-DX_FLAG_man = @DX_FLAG_man@
141
-DX_FLAG_pdf = @DX_FLAG_pdf@
142
-DX_FLAG_ps = @DX_FLAG_ps@
143
-DX_FLAG_rtf = @DX_FLAG_rtf@
144
-DX_FLAG_xml = @DX_FLAG_xml@
145
-DX_HHC = @DX_HHC@
146
-DX_LATEX = @DX_LATEX@
147
-DX_MAKEINDEX = @DX_MAKEINDEX@
148
-DX_PDFLATEX = @DX_PDFLATEX@
149
-DX_PERL = @DX_PERL@
150
-DX_PROJECT = @DX_PROJECT@
151
-ECHO_C = @ECHO_C@
152
-ECHO_N = @ECHO_N@
153
-ECHO_T = @ECHO_T@
154
-EGREP = @EGREP@
155
-EXEEXT = @EXEEXT@
156
-FGREP = @FGREP@
157
-GLIB_CFLAGS = @GLIB_CFLAGS@
158
-GLIB_LIBS = @GLIB_LIBS@
159
-GREP = @GREP@
160
-INSTALL = @INSTALL@
161
-INSTALL_DATA = @INSTALL_DATA@
162
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
163
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
164
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
165
-LD = @LD@
166
-LDFLAGS = @LDFLAGS@
167
-LIBOBJS = @LIBOBJS@
168
-LIBS = @LIBS@
169
-LIBTOOL = @LIBTOOL@
170
-LIBVERSION = @LIBVERSION@
171
-LIPO = @LIPO@
172
-LN_S = @LN_S@
173
-LTLIBOBJS = @LTLIBOBJS@
174
-MAINT = @MAINT@
175
-MAKEINFO = @MAKEINFO@
176
-MKDIR_P = @MKDIR_P@
177
-NM = @NM@
178
-NMEDIT = @NMEDIT@
179
-OBJDUMP = @OBJDUMP@
180
-OBJEXT = @OBJEXT@
181
-OTOOL = @OTOOL@
182
-OTOOL64 = @OTOOL64@
183
-PACKAGE = @PACKAGE@
184
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
185
-PACKAGE_NAME = @PACKAGE_NAME@
186
-PACKAGE_STRING = @PACKAGE_STRING@
187
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
188
-PACKAGE_URL = @PACKAGE_URL@
189
-PACKAGE_VERSION = @PACKAGE_VERSION@
190
-PATH_SEPARATOR = @PATH_SEPARATOR@
191
-PKG_CONFIG = @PKG_CONFIG@
192
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
193
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
194
-RANLIB = @RANLIB@
195
-SED = @SED@
196
-SET_MAKE = @SET_MAKE@
197
-SHELL = @SHELL@
198
-STRIP = @STRIP@
199
-VERSION = @VERSION@
200
-abs_builddir = @abs_builddir@
201
-abs_srcdir = @abs_srcdir@
202
-abs_top_builddir = @abs_top_builddir@
203
-abs_top_srcdir = @abs_top_srcdir@
204
-ac_ct_CC = @ac_ct_CC@
205
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
206
-am__include = @am__include@
207
-am__leading_dot = @am__leading_dot@
208
-am__quote = @am__quote@
209
-am__tar = @am__tar@
210
-am__untar = @am__untar@
211
-bindir = @bindir@
212
-build = @build@
213
-build_alias = @build_alias@
214
-build_cpu = @build_cpu@
215
-build_os = @build_os@
216
-build_vendor = @build_vendor@
217
-builddir = @builddir@
218
-datadir = @datadir@
219
-datarootdir = @datarootdir@
220
-docdir = @docdir@
221
-dvidir = @dvidir@
222
-exec_prefix = @exec_prefix@
223
-host = @host@
224
-host_alias = @host_alias@
225
-host_cpu = @host_cpu@
226
-host_os = @host_os@
227
-host_vendor = @host_vendor@
228
-htmldir = @htmldir@
229
-includedir = @includedir@
230
-infodir = @infodir@
231
-install_sh = @install_sh@
232
-libdir = @libdir@
233
-libexecdir = @libexecdir@
234
-localedir = @localedir@
235
-localstatedir = @localstatedir@
236
-lt_ECHO = @lt_ECHO@
237
-mandir = @mandir@
238
-mkdir_p = @mkdir_p@
239
-oldincludedir = @oldincludedir@
240
-pdfdir = @pdfdir@
241
-prefix = @prefix@
242
-program_transform_name = @program_transform_name@
243
-psdir = @psdir@
244
-sbindir = @sbindir@
245
-sharedstatedir = @sharedstatedir@
246
-srcdir = @srcdir@
247
-sysconfdir = @sysconfdir@
248
-target = @target@
249
-target_alias = @target_alias@
250
-target_cpu = @target_cpu@
251
-target_os = @target_os@
252
-target_vendor = @target_vendor@
253
-top_build_prefix = @top_build_prefix@
254
-top_builddir = @top_builddir@
255
-top_srcdir = @top_srcdir@
256
-AUTOMAKE_OPTIONS = gnu
257
-INCLUDES = @CURL_CFLAGS@ @GLIB_CFLAGS@ \
258
-		   -I$(top_srcdir) -I$(top_builddir)
259
-
260
-@STATIC_LINK_TRUE@noinst_LTLIBRARIES = libcaldav.la
261
-@DYNAMIC_LINK_TRUE@lib_LTLIBRARIES = libcaldav.la
262
-libcaldav_la_LDFLAGS = -version-info @LIBVERSION@
263
-libcaldav_la_SOURCES = \
264
-			caldav.h \
265
-			caldav.c \
266
-			add-caldav-object.c \
267
-			add-caldav-object.h \
268
-			delete-caldav-object.c \
269
-			delete-caldav-object.h \
270
-			modify-caldav-object.c \
271
-			modify-caldav-object.h \
272
-			get-caldav-report.c \
273
-			get-caldav-report.h \
274
-			get-display-name.c \
275
-			get-display-name.h \
276
-			caldav-utils.c \
277
-			caldav-utils.h \
278
-			md5.c \
279
-			md5.h \
280
-			options-caldav-server.c \
281
-			options-caldav-server.h \
282
-			lock-caldav-object.c \
283
-			lock-caldav-object.h \
284
-			get-freebusy-report.c \
285
-			get-freebusy-report.h
286
-
287
-libcaldav_includedir = $(includedir)/libcaldav-@VERSION@
288
-libcaldav_include_HEADERS = caldav.h
289
-noinst_HEADERS = \
290
-			add-caldav-object.h \
291
-			delete-caldav-object.h \
292
-			modify-caldav-object.h \
293
-			get-caldav-report.h \
294
-			caldav-utils.h
295
-
296
-libcaldav_la_LIBADD = \
297
-			@CURL_LIBS@ \
298
-			@GLIB_LIBS@
299
-
300
-all: all-am
301
-
302
-.SUFFIXES:
303
-.SUFFIXES: .c .lo .o .obj
304
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
305
-	@for dep in $?; do \
306
-	  case '$(am__configure_deps)' in \
307
-	    *$$dep*) \
308
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
309
-	        && { if test -f $@; then exit 0; else break; fi; }; \
310
-	      exit 1;; \
311
-	  esac; \
312
-	done; \
313
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
314
-	$(am__cd) $(top_srcdir) && \
315
-	  $(AUTOMAKE) --gnu src/Makefile
316
-.PRECIOUS: Makefile
317
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
318
-	@case '$?' in \
319
-	  *config.status*) \
320
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
321
-	  *) \
322
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
323
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
324
-	esac;
325
-
326
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
327
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
328
-
329
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
330
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
331
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
332
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
333
-$(am__aclocal_m4_deps):
334
-install-libLTLIBRARIES: $(lib_LTLIBRARIES)
335
-	@$(NORMAL_INSTALL)
336
-	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
337
-	@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
338
-	list2=; for p in $$list; do \
339
-	  if test -f $$p; then \
340
-	    list2="$$list2 $$p"; \
341
-	  else :; fi; \
342
-	done; \
343
-	test -z "$$list2" || { \
344
-	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
345
-	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
346
-	}
347
-
348
-uninstall-libLTLIBRARIES:
349
-	@$(NORMAL_UNINSTALL)
350
-	@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
351
-	for p in $$list; do \
352
-	  $(am__strip_dir) \
353
-	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
354
-	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
355
-	done
356
-
357
-clean-libLTLIBRARIES:
358
-	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
359
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
360
-	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
361
-	  test "$$dir" != "$$p" || dir=.; \
362
-	  echo "rm -f \"$${dir}/so_locations\""; \
363
-	  rm -f "$${dir}/so_locations"; \
364
-	done
365
-
366
-clean-noinstLTLIBRARIES:
367
-	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
368
-	@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
369
-	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
370
-	  test "$$dir" != "$$p" || dir=.; \
371
-	  echo "rm -f \"$${dir}/so_locations\""; \
372
-	  rm -f "$${dir}/so_locations"; \
373
-	done
374
-libcaldav.la: $(libcaldav_la_OBJECTS) $(libcaldav_la_DEPENDENCIES) 
375
-	$(libcaldav_la_LINK) $(am_libcaldav_la_rpath) $(libcaldav_la_OBJECTS) $(libcaldav_la_LIBADD) $(LIBS)
376
-
377
-mostlyclean-compile:
378
-	-rm -f *.$(OBJEXT)
379
-
380
-distclean-compile:
381
-	-rm -f *.tab.c
382
-
383
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add-caldav-object.Plo@am__quote@
384
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/caldav-utils.Plo@am__quote@
385
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/caldav.Plo@am__quote@
386
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/delete-caldav-object.Plo@am__quote@
387
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get-caldav-report.Plo@am__quote@
388
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get-display-name.Plo@am__quote@
389
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get-freebusy-report.Plo@am__quote@
390
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lock-caldav-object.Plo@am__quote@
391
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Plo@am__quote@
392
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/modify-caldav-object.Plo@am__quote@
393
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/options-caldav-server.Plo@am__quote@
394
-
395
-.c.o:
396
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
397
-@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
398
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
399
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400
-@am__fastdepCC_FALSE@	$(COMPILE) -c $<
401
-
402
-.c.obj:
403
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
404
-@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
405
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
406
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407
-@am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
408
-
409
-.c.lo:
410
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
411
-@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
412
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
413
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
414
-@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
415
-
416
-mostlyclean-libtool:
417
-	-rm -f *.lo
418
-
419
-clean-libtool:
420
-	-rm -rf .libs _libs
421
-install-libcaldav_includeHEADERS: $(libcaldav_include_HEADERS)
422
-	@$(NORMAL_INSTALL)
423
-	test -z "$(libcaldav_includedir)" || $(MKDIR_P) "$(DESTDIR)$(libcaldav_includedir)"
424
-	@list='$(libcaldav_include_HEADERS)'; test -n "$(libcaldav_includedir)" || list=; \
425
-	for p in $$list; do \
426
-	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
427
-	  echo "$$d$$p"; \
428
-	done | $(am__base_list) | \
429
-	while read files; do \
430
-	  echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libcaldav_includedir)'"; \
431
-	  $(INSTALL_HEADER) $$files "$(DESTDIR)$(libcaldav_includedir)" || exit $$?; \
432
-	done
433
-
434
-uninstall-libcaldav_includeHEADERS:
435
-	@$(NORMAL_UNINSTALL)
436
-	@list='$(libcaldav_include_HEADERS)'; test -n "$(libcaldav_includedir)" || list=; \
437
-	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
438
-	test -n "$$files" || exit 0; \
439
-	echo " ( cd '$(DESTDIR)$(libcaldav_includedir)' && rm -f" $$files ")"; \
440
-	cd "$(DESTDIR)$(libcaldav_includedir)" && rm -f $$files
441
-
442
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
443
-	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
444
-	unique=`for i in $$list; do \
445
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
446
-	  done | \
447
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
448
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
449
-	mkid -fID $$unique
450
-tags: TAGS
451
-
452
-TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
453
-		$(TAGS_FILES) $(LISP)
454
-	set x; \
455
-	here=`pwd`; \
456
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
457
-	unique=`for i in $$list; do \
458
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
459
-	  done | \
460
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
461
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
462
-	shift; \
463
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
464
-	  test -n "$$unique" || unique=$$empty_fix; \
465
-	  if test $$# -gt 0; then \
466
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
467
-	      "$$@" $$unique; \
468
-	  else \
469
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
470
-	      $$unique; \
471
-	  fi; \
472
-	fi
473
-ctags: CTAGS
474
-CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
475
-		$(TAGS_FILES) $(LISP)
476
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
477
-	unique=`for i in $$list; do \
478
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
479
-	  done | \
480
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
481
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
482
-	test -z "$(CTAGS_ARGS)$$unique" \
483
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
484
-	     $$unique
485
-
486
-GTAGS:
487
-	here=`$(am__cd) $(top_builddir) && pwd` \
488
-	  && $(am__cd) $(top_srcdir) \
489
-	  && gtags -i $(GTAGS_ARGS) "$$here"
490
-
491
-distclean-tags:
492
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
493
-
494
-distdir: $(DISTFILES)
495
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
496
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
497
-	list='$(DISTFILES)'; \
498
-	  dist_files=`for file in $$list; do echo $$file; done | \
499
-	  sed -e "s|^$$srcdirstrip/||;t" \
500
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
501
-	case $$dist_files in \
502
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
503
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
504
-			   sort -u` ;; \
505
-	esac; \
506
-	for file in $$dist_files; do \
507
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
508
-	  if test -d $$d/$$file; then \
509
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
510
-	    if test -d "$(distdir)/$$file"; then \
511
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
512
-	    fi; \
513
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
514
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
515
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
516
-	    fi; \
517
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
518
-	  else \
519
-	    test -f "$(distdir)/$$file" \
520
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
521
-	    || exit 1; \
522
-	  fi; \
523
-	done
524
-check-am: all-am
525
-check: check-am
526
-all-am: Makefile $(LTLIBRARIES) $(HEADERS)
527
-installdirs:
528
-	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libcaldav_includedir)"; do \
529
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
530
-	done
531
-install: install-am
532
-install-exec: install-exec-am
533
-install-data: install-data-am
534
-uninstall: uninstall-am
535
-
536
-install-am: all-am
537
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
538
-
539
-installcheck: installcheck-am
540
-install-strip:
541
-	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
542
-	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
543
-	  `test -z '$(STRIP)' || \
544
-	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
545
-mostlyclean-generic:
546
-
547
-clean-generic:
548
-
549
-distclean-generic:
550
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
551
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
552
-
553
-maintainer-clean-generic:
554
-	@echo "This command is intended for maintainers to use"
555
-	@echo "it deletes files that may require special tools to rebuild."
556
-clean: clean-am
557
-
558
-clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
559
-	clean-noinstLTLIBRARIES mostlyclean-am
560
-
561
-distclean: distclean-am
562
-	-rm -rf ./$(DEPDIR)
563
-	-rm -f Makefile
564
-distclean-am: clean-am distclean-compile distclean-generic \
565
-	distclean-tags
566
-
567
-dvi: dvi-am
568
-
569
-dvi-am:
570
-
571
-html: html-am
572
-
573
-html-am:
574
-
575
-info: info-am
576
-
577
-info-am:
578
-
579
-install-data-am: install-libcaldav_includeHEADERS
580
-
581
-install-dvi: install-dvi-am
582
-
583
-install-dvi-am:
584
-
585
-install-exec-am: install-libLTLIBRARIES
586
-
587
-install-html: install-html-am
588
-
589
-install-html-am:
590
-
591
-install-info: install-info-am
592
-
593
-install-info-am:
594
-
595
-install-man:
596
-
597
-install-pdf: install-pdf-am
598
-
599
-install-pdf-am:
600
-
601
-install-ps: install-ps-am
602
-
603
-install-ps-am:
604
-
605
-installcheck-am:
606
-
607
-maintainer-clean: maintainer-clean-am
608
-	-rm -rf ./$(DEPDIR)
609
-	-rm -f Makefile
610
-maintainer-clean-am: distclean-am maintainer-clean-generic
611
-
612
-mostlyclean: mostlyclean-am
613
-
614
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
615
-	mostlyclean-libtool
616
-
617
-pdf: pdf-am
618
-
619
-pdf-am:
620
-
621
-ps: ps-am
622
-
623
-ps-am:
624
-
625
-uninstall-am: uninstall-libLTLIBRARIES \
626
-	uninstall-libcaldav_includeHEADERS
627
-
628
-.MAKE: install-am install-strip
629
-
630
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
631
-	clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \
632
-	ctags distclean distclean-compile distclean-generic \
633
-	distclean-libtool distclean-tags distdir dvi dvi-am html \
634
-	html-am info info-am install install-am install-data \
635
-	install-data-am install-dvi install-dvi-am install-exec \
636
-	install-exec-am install-html install-html-am install-info \
637
-	install-info-am install-libLTLIBRARIES \
638
-	install-libcaldav_includeHEADERS install-man install-pdf \
639
-	install-pdf-am install-ps install-ps-am install-strip \
640
-	installcheck installcheck-am installdirs maintainer-clean \
641
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
642
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
643
-	tags uninstall uninstall-am uninstall-libLTLIBRARIES \
644
-	uninstall-libcaldav_includeHEADERS
645
-
646
-
647
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
648
-# Otherwise a system limit (for SysV at least) may be exceeded.
649
-.NOEXPORT:

+ 0
- 131
src/.svn/text-base/add-caldav-object.c.svn-base View File

@@ -1,131 +0,0 @@
1
-/* vim: set textwidth=80 tabstop=4: */
2
-
3
-/* Copyright (c) 2008 Michael Rasmussen (mir@datanom.net)
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
- */
19
-
20
-#ifdef HAVE_CONFIG_H
21
-#  include "config.h"
22
-#endif
23
-
24
-#include "add-caldav-object.h"
25
-#include <glib.h>
26
-#include <curl/curl.h>
27
-#include <stdio.h>
28
-#include <stdlib.h>
29
-#include <string.h>
30
-
31
-/**
32
- * Function for adding a new event.
33
- * @param settings A pointer to caldav_settings. @see caldav_settings
34
- * @param error A pointer to caldav_error. @see caldav_error
35
- * @return TRUE in case of error, FALSE otherwise.
36
- */
37
-gboolean caldav_add(caldav_settings* settings, caldav_error* error) {
38
-	CURL* curl;
39
-	CURLcode res = 0;
40
-	char error_buf[CURL_ERROR_SIZE];
41
-	struct config_data data;
42
-	struct MemoryStruct chunk;
43
-	struct MemoryStruct headers;
44
-	struct curl_slist *http_header = NULL;
45
-	gboolean result = FALSE;
46
-	gchar* url;
47
-
48
-	chunk.memory = NULL; /* we expect realloc(NULL, size) to work */
49
-	chunk.size = 0;    /* no data at this point */
50
-	headers.memory = NULL;
51
-	headers.size = 0;
52
-
53
-	curl = get_curl(settings);
54
-	if (!curl) {
55
-		error->code = -1;
56
-		error->str = g_strdup("Could not initialize libcurl");
57
-		g_free(settings->file);
58
-		settings->file = NULL;
59
-		return TRUE;
60
-	}
61
-
62
-	http_header = curl_slist_append(http_header,
63
-			"Content-Type: text/calendar; charset=\"utf-8\"");
64
-	http_header = curl_slist_append(http_header, "If-None-Match: *");
65
-	http_header = curl_slist_append(http_header, "Expect:");
66
-	http_header = curl_slist_append(http_header, "Transfer-Encoding:");
67
-	data.trace_ascii = settings->trace_ascii;
68
-
69
-	curl_easy_setopt(curl, CURLOPT_HTTPHEADER, http_header);
70
-	/* send all data to this function  */
71
-	curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
72
-	/* we pass our 'chunk' struct to the callback function */
73
-	curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
74
-	/* send all data to this function  */
75
-	curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION,	WriteHeaderCallback);
76
-	/* we pass our 'headers' struct to the callback function */
77
-	curl_easy_setopt(curl, CURLOPT_WRITEHEADER, (void *)&headers);
78
-	curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, (char *) &error_buf);
79
-	if (settings->debug) {
80
-		curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
81
-		curl_easy_setopt(curl, CURLOPT_DEBUGDATA, &data);
82
-		curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
83
-	}
84
-	gchar* tmp = random_file_name(settings->file);
85
-	gchar* s = rebuild_url(settings, NULL);
86
-	if (g_str_has_suffix(s, "/")) {
87
-		url = g_strdup_printf("%slibcaldav-%s.ics", s, tmp);
88
-	}
89
-	else {
90
-		url = g_strdup_printf("%s/libcaldav-%s.ics", s, tmp);
91
-	}
92
-	g_free(s);
93
-	g_free(tmp);
94
-	curl_easy_setopt(curl, CURLOPT_URL, url);
95
-	tmp = g_strdup(settings->file);
96
-	g_free(settings->file);
97
-	settings->file = verify_uid(tmp);
98
-	g_free(tmp);
99
-	/* enable uploading */
100
-	curl_easy_setopt(curl, CURLOPT_POSTFIELDS, settings->file);
101
-	curl_easy_setopt (curl, CURLOPT_POSTFIELDSIZE, strlen(settings->file));
102
-	curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
103
-	curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
104
-	curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
105
-	curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
106
-	res = curl_easy_perform(curl);
107
-	if (res != 0) {
108
-		error->code = -1;
109
-		error->str = g_strdup_printf("%s", error_buf);
110
-		g_free(settings->file);
111
-		settings->file = NULL;
112
-		result = TRUE;
113
-	}
114
-	else {
115
-		long code;
116
-		res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &code);
117
-		if (code != 201) {
118
-			error->str = g_strdup(chunk.memory);
119
-			error->code = code;
120
-			result = TRUE;
121
-		}
122
-	}
123
-	if (chunk.memory)
124
-		free(chunk.memory);
125
-	if (headers.memory)
126
-		free(headers.memory);
127
-	curl_slist_free_all(http_header);
128
-	curl_easy_cleanup(curl);
129
-	return result;
130
-}
131
-

+ 0
- 35
src/.svn/text-base/add-caldav-object.h.svn-base View File

@@ -1,35 +0,0 @@
1
-/* vim: set textwidth=80 tabstop=4: */
2
-
3
-/* Copyright (c) 2008 Michael Rasmussen (mir@datanom.net)
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
- */
19
-
20
-#ifndef __ADD_CALDAV_OBJECT_H__
21
-#define __ADD_CALDAV_OBJECT_H__
22
-
23
-#include "caldav-utils.h"
24
-#include "caldav.h"
25
-
26
-/**
27
- * Function for adding a new event.
28
- * @param settings A pointer to caldav_settings. @see caldav_settings
29
- * @param error A pointer to caldav_error. @see caldav_error
30
- * @return TRUE in case of error, FALSE otherwise.
31
- */
32
-gboolean caldav_add(caldav_settings* settings, caldav_error* error);
33
-
34
-#endif
35
-

+ 0
- 713
src/.svn/text-base/caldav-utils.c.svn-base View File

@@ -1,713 +0,0 @@
1
-/* vim: set textwidth=80 tabstop=4: */
2
-
3
-/* Copyright (c) 2008 Michael Rasmussen (mir@datanom.net)
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
- */
19
-
20
-#ifdef HAVE_CONFIG_H
21
-#  include "config.h"
22
-#endif
23
-
24
-#include "caldav-utils.h"
25
-#include "md5.h"
26
-#include <glib.h>
27
-#include <stdio.h>
28
-#include <stdlib.h>
29
-#include <string.h>
30
-#include <time.h>
31
-#include <unistd.h>
32
-#include <curl/curl.h>
33
-#include <ctype.h>
34
-
35
-/**
36
- * This function is burrowed from the libcurl documentation
37
- * @param text
38
- * @param stream
39
- * @param ptr
40
- * @param size
41
- * @param nohex
42
- */
43
-void dump(const char* text, FILE* stream, char* ptr, size_t size, char nohex) {
44
-	size_t i;
45
-	size_t c;
46
-
47
-	unsigned int width=0x10;
48
-
49
-	if(nohex)
50
-		/* without the hex output, we can fit more on screen */
51
-		width = 0x40;
52
-	fprintf(stream, "%s, %zd bytes (0x%zx)\n", text, size, size);
53
-	for(i=0; i<size; i+= width) {
54
-		fprintf(stream, "%04zx: ", i);
55
-		if(!nohex) {
56
-			/* hex not disabled, show it */
57
-			for(c = 0; c < width; c++) {
58
-				if(i+c < size)
59
-					fprintf(stream, "%02x ", ptr[i+c]);
60
-				else
61
-					fputs("   ", stream);
62
-			}
63
-		}
64
-		for(c = 0; (c < width) && (i+c < size); c++) {
65
-		/* check for 0D0A; if found, skip past and start a new line of output */
66
-			if (nohex && (i+c+1 < size) && ptr[i+c]==0x0D && ptr[i+c+1]==0x0A) {
67
-				i+=(c+2-width);
68
-				break;
69
-			}
70
-			fprintf(stream, "%c",(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.');
71
-			/* check again for 0D0A, to avoid an extra \n if it's at width */
72
-			if (nohex && (i+c+2 < size) && ptr[i+c+1]==0x0D && ptr[i+c+2]==0x0A) {
73
-				i+=(c+3-width);
74
-				break;
75
-			}
76
-		}
77
-		fputc('\n', stream); /* newline */
78
-	}
79
-	fflush(stream);
80
-}
81
-
82
-/**
83
- * This function is burrowed from the libcurl documentation
84
- * @param handle
85
- * @param type
86
- * @param data
87
- * @param size
88
- * @param userp
89
- * @return
90
- */
91
-int my_trace(CURL* handle, curl_infotype type, char* data, size_t size, void* userp) {
92
-	struct config_data* config = (struct config_data *)userp;
93
-	const char* text;
94
-	(void)handle; /* prevent compiler warning */
95
-
96
-	switch (type) {
97
-		case CURLINFO_TEXT:
98
-			fprintf(stderr, "== Info: %s", data);
99
-		default: /* in case a new one is introduced to shock us */
100
-			return 0;
101
-		case CURLINFO_HEADER_OUT:
102
-			text = "=> Send header";
103
-			break;
104
-		case CURLINFO_DATA_OUT:
105
-			text = "=> Send data";
106
-			break;
107
-		case CURLINFO_SSL_DATA_OUT:
108
-			text = "=> Send SSL data";
109
-			break;
110
-		case CURLINFO_HEADER_IN:
111
-			text = "<= Recv header";
112
-			break;
113
-		case CURLINFO_DATA_IN:
114
-			text = "<= Recv data";
115
-			break;
116
-		case CURLINFO_SSL_DATA_IN:
117
-			text = "<= Recv SSL data";
118
-			break;
119
-	}
120
-	dump(text, stderr, data, size, config->trace_ascii);
121
-	return 0;
122
-}
123
-
124
-/**
125
- * This function is burrowed from the libcurl documentation
126
- * @param ptr
127
- * @param size
128
- * @return void* to memory region
129
- */
130
-static void* myrealloc(void* ptr, size_t size) {
131
-/* There might be a realloc() out there that doesn't like reallocing
132
- * NULL pointers, so we take care of it here
133
- * */
134
-	if(ptr)
135
-		return realloc(ptr, size);
136
-	else
137
-		return malloc(size);
138
-}
139
-
140
-/**
141
- * This function is burrowed from the libcurl documentation
142
- * @param ptr
143
- * @param size
144
- * @param nmemb
145
- * @param data
146
- * @return number of written bytes
147
- */
148
-size_t WriteMemoryCallback(void* ptr, size_t size, size_t nmemb, void* data) {
149
-	size_t realsize = size * nmemb;
150
-	struct MemoryStruct* mem = (struct MemoryStruct *)data;
151
-	mem->memory = (char *)myrealloc(mem->memory, mem->size + realsize + 1);
152
-	
153
-	if (mem->memory) {
154
-		memcpy(&(mem->memory[mem->size]), ptr, realsize);
155
-		mem->size += realsize;
156
-		mem->memory[mem->size] = 0;
157
-	}
158
-	return realsize;
159
-}
160
-
161
-/**
162
- * This function is burrowed from the libcurl documentation
163
- * @param ptr
164
- * @param size
165
- * @param nmemb
166
- * @param data
167
- * @return number of written bytes
168
- */
169
-size_t WriteHeaderCallback(void* ptr, size_t size, size_t nmemb, void* data) {
170
-	size_t realsize = size * nmemb;
171
-	struct MemoryStruct* mem = (struct MemoryStruct *)data;
172
-	mem->memory = (char *)myrealloc(mem->memory, mem->size + realsize + 1);
173
-	
174
-	if (mem->memory) {
175
-		memcpy(&(mem->memory[mem->size]), ptr, realsize);
176
-		mem->size += realsize;
177
-		mem->memory[mem->size] = 0;
178
-	}
179
-	return realsize;
180
-}
181
-
182
-/*
183
-size_t ReadMemoryCallback(void* ptr, size_t size, size_t nmemb, void* data){
184
-	struct MemoryStruct* mem = (struct MemoryStruct *)data;
185
-
186
-	memcpy(ptr, mem->memory, mem->size);
187
-	return mem->size;
188
-}
189
-*/
190
-
191
-/**
192
- * Initialize caldav settings structure.
193
- * @param settings @see caldav_settings
194
- */
195
-void init_caldav_settings(caldav_settings* settings) {
196
-	settings->username = NULL;
197
-	settings->password = NULL;
198
-	settings->url = NULL;
199
-	settings->file = NULL;
200
-	settings->usehttps = FALSE;
201
-	settings->custom_cacert = NULL;
202
-	settings->verify_ssl_certificate = TRUE;
203
-	settings->debug = FALSE;
204
-	settings->trace_ascii = TRUE;
205
-	settings->ACTION = UNKNOWN;
206
-	settings->start = 0;
207
-	settings->end = 0;
208
-}
209
-
210
-/**
211
- * Free memory assigned to caldav settings structure.
212
- * @param settings @see caldav_settings
213
- */
214
-void free_caldav_settings(caldav_settings* settings) {
215
-	if (settings->username) {
216
-		g_free(settings->username);
217
-		settings->username = NULL;
218
-	}
219
-	if (settings->password) {
220
-		g_free(settings->password);
221
-		settings->password = NULL;
222
-	}
223
-	if (settings->url) {
224
-		g_free(settings->url);
225
-		settings->url = NULL;
226
-	}
227
-	if (settings->file) {
228
-		g_free(settings->file);
229
-		settings->file = NULL;
230
-	}
231
-	if (settings->custom_cacert) {
232
-		g_free(settings->custom_cacert);
233
-		settings->custom_cacert = NULL;
234
-	}
235
-	settings->verify_ssl_certificate = TRUE;
236
-	settings->usehttps = FALSE;
237
-	settings->debug = FALSE;
238
-	settings->trace_ascii = TRUE;
239
-	settings->ACTION = UNKNOWN;
240
-	settings->start = 0;
241
-	settings->end = 0;
242
-}
243
-
244
-static gchar* place_after_hostname(const gchar* start, const gchar* stop) {
245
-	gchar* newpos = NULL;
246
-	gchar* pos = (gchar *) stop;
247
-	gboolean digit = TRUE;
248
-	
249
-	if (pos && stop && strcmp(start, pos) != 0) {
250
-		while (*pos != ':' && strcmp(start, pos) != 0)
251
-			--pos;
252
-		if (pos > start) {
253
-			gchar* tmp = (gchar *) pos + 1;
254
-			/* is pos++ a port number */
255
-			while (*tmp != '/' && digit) {
256
-				if (isdigit(*tmp) != 0) {
257
-					digit = TRUE;
258
-					tmp++;
259
-				}
260
-				else
261
-					digit = FALSE;
262
-			}
263
-			if (digit) {
264
-				/* pos was a port number */
265
-				while (*pos != '@' && strcmp(start, pos) != 0)
266
-					--pos;
267
-				if (strcmp(start, pos) != 0)
268
-					newpos = pos;
269
-			}
270
-			else {
271
-				while (*pos != '@' && pos != stop)
272
-					pos++;
273
-				if (pos != stop)
274
-					newpos = pos;
275
-			}
276
-		}
277
-		else {
278
-			/* is a username present */
279
-			gchar* tmp = NULL;
280
-			while (*pos != '/' && pos != stop) {
281
-				if (*pos == '@')
282
-					tmp = pos;
283
-				pos++;
284
-			}
285
-			if (tmp && pos != stop)
286
-				newpos = tmp;
287
-		}
288
-	}
289
-	return newpos;
290
-}
291
-
292
-/**
293
- * Parse URL
294
- * @param settings @see caldav_settings
295
- * @param url String containing URL to collection
296
- */
297
-void parse_url(caldav_settings* settings, const char* url) {
298
-	char* start;
299
-	char* pos;
300
-	char* end;
301
-	char* login;
302
-
303
-	login = pos = end = start = NULL;
304
-	if (!url)
305
-		return;
306
-	if ((pos = strstr(url, "//")) != NULL) {
307
-		/* Does the URL use https ?*/
308
-		if (!g_ascii_strncasecmp(url,"https",5) && settings->usehttps == FALSE) {
309
-				settings->usehttps=TRUE;
310
-		}
311
-		start = g_strdup(&(*(pos + 2)));
312
-		if ((pos = place_after_hostname(start, strrchr(start, '\0') - 1)) != NULL) {
313
-			/* username and/or password present */
314
-			login = g_strndup(start, pos - start);
315
-			end = pos;
316
-			if ((pos = strrchr(login, ':')) != NULL) {
317
-				/* both username and password is present */
318
-				settings->username = g_strndup(login, pos - login);
319
-				settings->password = g_strdup(++pos);
320
-			}
321
-			else {
322
-				/* only username present */
323
-				settings->username = g_strdup(login);
324
-				settings->password = NULL;
325
-			}
326
-			g_free(login);
327
-			settings->url = g_strdup(++end);
328
-		}
329
-		else {
330
-			/* no username or password present */
331
-			settings->url = g_strdup(start);
332
-			settings->username = NULL;
333
-			settings->password = NULL;
334
-		}
335
-		g_free(start);
336
-	}
337
-}
338
-
339
-/**
340
- * Find a specific HTTP header from last request
341
- * @param header HTTP header to search for
342
- * @param headers String of HTTP headers from last request
343
- * @param lowcase Should string be returned in all lower case.
344
- * @return The header found or NULL
345
- */
346
-#define MAX_TOKENS 2
347
-gchar* get_response_header(
348
-		const char* header, gchar* headers, gboolean lowcase) {
349
-	gchar* line;
350
-	gchar* head = NULL;
351
-	gchar* oldhead = NULL;
352
-	gchar** buf;
353
-	gchar* header_list;
354
-	gchar* saveptr;
355
-
356
-	header_list = g_strdup(headers);
357
-	line = strtok_r(header_list, "\r\n", &saveptr);
358
-	if (line != NULL) {
359
-		do  {
360
-			buf = g_strsplit(line, ":", MAX_TOKENS);
361
-			if (buf[1] != NULL) {
362
-				if (g_ascii_strcasecmp(buf[0], header) == 0) {
363
-					if (head) {
364
-						oldhead = head;
365
-						head = g_strconcat(head, ", ", buf[1], NULL);
366
-						g_free(oldhead);
367
-					}
368
-					else
369
-						head = g_strdup(buf[1]);
370
-					if (head)
371
-						g_strstrip(head);
372
-				}
373
-			}
374
-			g_strfreev(buf);
375
-		} while ((line = strtok_r(NULL, "\r\n", &saveptr)) != NULL);
376
-	}
377
-	g_free(header_list);
378
-	if (head)
379
-		return (lowcase) ? g_ascii_strdown(head, -1) : head;
380
-	else
381
-		return NULL;
382
-}
383
-
384
-static const char* VCAL_HEAD =
385
-"BEGIN:VCALENDAR\r\n"
386
-"PRODID:-//CalDAV Calendar//NONSGML libcaldav//EN\r\n"
387
-"VERSION:2.0\r\n";
388
-static const char* VCAL_FOOT = "END:VCALENDAR";
389
-
390
-/**
391
- * Parse response from CalDAV server. Internal function.
392
- * @param report Response from server
393
- * @param element XML element to find
394
- * @param type VCalendar element to find
395
- * @param wrap Is this the final parsing or just a part
396
- * @param recursive Stop after first match or not
397
- * @return the parsed result
398
- */
399
-static gchar* parse_caldav_report_wrap(
400
-		char* report, const char* element, const char* type,
401
-			gboolean wrap, gboolean recursive) {
402
-	char* pos;
403
-	char* start;
404
-	char* object;
405
-	char* tmp_report;
406
-	char* tmp;
407
-	gchar* response;
408
-	gchar* begin_type;
409
-	gchar* end_type;
410
-	gboolean keep_going = TRUE;
411
-
412
-	begin_type = g_strdup_printf("BEGIN:%s", type);
413
-	end_type = g_strdup_printf("END:%s", type);
414
-	pos = start = object = response = NULL;
415
-	tmp_report = g_strdup(report);
416
-	while ((pos = strstr(tmp_report, element)) != NULL && keep_going) {
417
-		pos = strchr(pos, '>');
418
-		if (!pos) {
419
-			break;
420
-		}
421
-		pos = &(*(pos + 1));
422
-		pos = strstr(pos, begin_type);
423
-		if (!pos) {
424
-			break;
425
-		}
426
-		object = &(*(pos + strlen(begin_type)));
427
-		object = g_strchug(object);
428
-		start = g_strdup(object);
429
-		if ((pos = strstr(start, end_type)) == NULL) {
430
-			g_free(start);
431
-			break;
432
-		}
433
-		object = g_strndup(start, strlen(start) - strlen(pos));
434
-		if (response) {
435
-			tmp = g_strdup(response);
436
-			g_free(response);
437
-			response = g_strdup_printf("%s%s\r\n%s%s\r\n",
438
-				tmp, begin_type, object, end_type);
439
-			g_free(tmp);
440
-		}
441
-		else {
442
-			if (wrap)
443
-				response = g_strdup_printf("%s%s\r\n%s%s\r\n",
444
-					VCAL_HEAD, begin_type, object, end_type);
445
-			else
446
-				response = g_strdup_printf("%s\r\n%s%s\r\n",
447
-					begin_type, object, end_type);
448
-		}
449
-		if (recursive) {
450
-			pos = strchr(pos, '>');
451
-			g_free(tmp_report);
452
-			tmp_report = g_strdup(&(*(pos + 1)));
453
-		}
454
-		else {
455
-			keep_going = FALSE;
456
-		}
457
-		g_free(start);
458
-		g_free(object);
459
-	}
460
-	g_free(tmp_report);
461
-	g_free(begin_type);
462
-	g_free(end_type);
463
-	if (wrap)
464
-		if (response) {
465
-			object = g_strdup(response);
466
-			g_free(response);
467
-			response = g_strdup_printf("%s%s", object, VCAL_FOOT);
468
-			g_free(object);
469
-		}
470
-	return response;
471
-}
472
-
473
-/**
474
- * Parse response from CalDAV server
475
- * @param report Response from server
476
- * @param element XML element to find
477
- * @param type VCalendar element to find
478
- * @return the parsed result
479
- */
480
-gchar* parse_caldav_report(char* report, const char* element, const char* type) {
481
-	gchar* response = NULL;
482
-	gchar* timezone = NULL;
483
-	gchar* temp = NULL;
484
-
485
-	if (!report || !element || !type)
486
-		return NULL;
487
-	/* test for VTIMEZONE.
488
-	 * Only the first found will be used and this will then
489
-	 * be the time zone for the entire report
490
-	 */
491
-	timezone = parse_caldav_report_wrap(
492
-			report, element, "VTIMEZONE", FALSE, FALSE);
493
-	if (timezone) {
494
-			response = g_strdup_printf("%s%s", VCAL_HEAD, timezone);
495
-			g_free(timezone);
496
-			temp = parse_caldav_report_wrap(report, element, type, FALSE, TRUE);
497
-			if (temp) {
498
-				gchar* tmp = g_strdup(response);
499
-				g_free(response);
500
-				response = g_strdup_printf("%s%s%s", tmp, temp, VCAL_FOOT);
501
-				g_free(tmp);
502
-				g_free(temp);
503
-			}
504
-			else {
505
-				g_free(response);
506
-				return NULL;
507
-			}
508
-	}
509
-	else
510
-		response = parse_caldav_report_wrap(report, element, type, TRUE, TRUE);
511
-	return response;
512
-}
513
-
514
-/**
515
- * Convert a time_t variable to CalDAV DateTime
516
- * @param time a specific date and time
517
- * @return the CalDAV DateTime
518
- */
519
-gchar* get_caldav_datetime(time_t* time) {
520
-	struct tm *current;
521
-	gchar* datetime;
522
-
523
-	current = localtime(time);
524
-	datetime = g_strdup_printf("%d%.2d%.2dT%.2d%.2d%.2dZ",
525
-		current->tm_year + 1900, current->tm_mon + 1, current->tm_mday,
526
-		current->tm_hour, current->tm_min, current->tm_sec);
527
-	return datetime;
528
-}
529
-
530
-/**
531
- * Create a random text string, using MD5. @see caldav_md5_hex_digest()
532
- * @param text some text to randomize
533
- * @return MD5 hash of text
534
- */
535
-gchar* random_file_name(gchar* text) {
536
-	unsigned char* name;
537
-	gchar md5sum[33];
538
-
539
-	name = (unsigned char *) g_strdup(text);
540
-	caldav_md5_hex_digest(md5sum, name);
541
-	g_free(name);
542
-	return g_strdup(md5sum);
543
-}
544
-
545
-/**
546
- * Does the event contain a UID element or not. If not add it.
547
- * @param object A specific event
548
- * @return event, eventually added UID
549
- */
550
-gchar* verify_uid(gchar* object) {
551
-	gchar* uid;
552
-	gchar* newobj;
553
-	gchar* pos;
554
-
555
-	newobj = g_strdup(object);
556
-	uid = get_response_header("uid", object, TRUE);
557
-	if (!uid) {
558
-		object = g_strdup(newobj);
559
-		g_free(newobj);
560
-		pos = strstr(object, "END:VEVENT");
561
-		newobj = g_strndup(object, strlen(object) - strlen(pos));
562
-		newobj = g_strchomp(newobj);
563
-		uid = random_file_name(object);
564
-		gchar*tmp = g_strdup(newobj);
565
-		g_free(newobj);
566
-		newobj = g_strdup_printf("%s\r\nUID:libcaldav-%s@tempuri.org\r\n%s",
567
-					tmp, uid, pos);
568
-		g_free(uid);
569
-		g_free(tmp);
570
-		g_free(object);
571
-	}
572
-	else
573
-		g_free(uid);
574
-	/*uid = g_strdup(newobj);
575
-	g_free(newobj);*/
576
-	g_strchomp(newobj);
577
-	/*g_free(uid);*/
578
-	return newobj;
579
-}
580
-
581
-/**
582
- * Fetch a URL from a XML element
583
- * @param text String
584
- * @return URL
585
- */
586
-#define ELEM_HREF "href>"
587
-gchar* get_url(gchar* text) {
588
-	gchar* pos;
589
-	gchar* url = NULL;
590
-
591
-	if ((pos = strstr(text, ELEM_HREF)) == NULL)
592
-		return url;
593
-	pos = &(*(pos + strlen(ELEM_HREF)));
594
-	url = g_strndup(pos, strlen(pos) - strlen(strchr(pos, '<')));
595
-	return url;
596
-}
597
-
598
-/**
599
- * Fetch any element from XML
600
- * @param text String
601
- * @param tag The element to look for
602
- * @return element
603
- */
604
-gchar* get_tag(const gchar* tag, gchar* text) {
605
-	gchar *pos;
606
-	gchar* res = NULL;
607
-	gchar* the_tag = NULL;
608
-
609
-	/*printf("%s\n", text);*/
610
-	the_tag = g_strdup_printf("<%s>", tag);
611
-	if ((pos = strstr(text, the_tag)) == NULL) {
612
-		g_free(the_tag);
613
-		return res;
614
-	}
615
-	pos = &(*(pos + strlen(the_tag)));
616
-	res = g_strndup(pos, strlen(pos) - strlen(strchr(pos, '<')));
617
-	g_free(the_tag);
618
-	return res;	
619
-}
620
-
621
-/**
622
- * Fetch the etag element from XML
623
- * @param text String
624
- * @return etag
625
- */
626
-#define ELEM_ETAG "getetag"
627
-gchar* get_etag(gchar* text) {
628
-	gchar* etag = NULL;
629
-	
630
-	etag = get_tag(ELEM_ETAG, text);
631
-	/* Maybe namespace prefixed */
632
-	if (!etag) {
633
-		etag = get_tag("D:getetag", text);
634
-	}
635
-	return etag;
636
-}
637
-
638
-/**
639
- * Fetch host from URL
640
- * @param url URL
641
- * @return host
642
- */
643
-gchar* get_host(gchar* url) {
644
-	gchar** buf;
645
-	gchar* result = NULL;
646
-
647
-	buf = g_strsplit(url, "/", 2);
648
-	if (buf[0]) {
649
-		result = g_strdup(buf[0]);
650
-	}
651
-	g_strfreev(buf);
652
-	return result;
653
-}
654
-
655
-/**
656
- * rebuild a raw URL with https if needed from the settings
657
- * @param settings caldav_settings
658
- * @param uri URI to use instead of base
659
- * @return URL
660
- */
661
-
662
-gchar* rebuild_url(caldav_settings* settings, gchar* uri){
663
-    gchar* url = NULL;
664
-    gchar* mystr = NULL;
665
-	if (settings->usehttps) {
666
-		mystr = "https://";
667
-	} else {
668
-		mystr = "http://";
669
-	}
670
-	if (uri)
671
-		url = g_strdup_printf("%s%s", mystr, uri);
672
-	else
673
-    	url = g_strdup_printf("%s%s", mystr,settings->url);
674
-
675
-	return url;
676
-}
677
-
678
-/**
679
- * Prepare a curl connection
680
- * @param settings caldav_settings
681
- * @return CURL
682
- */
683
-CURL* get_curl(caldav_settings* setting) {
684
-	CURL* curl;
685
-	gchar* userpwd = NULL;
686
-	gchar* url = NULL;
687
-
688
-	curl = curl_easy_init();
689
-	if (curl) {
690
-		if (setting->username) {
691
-			if (setting->password)
692
-				userpwd = g_strdup_printf("%s:%s",
693
-					setting->username, setting->password);
694
-			else
695
-				userpwd = g_strdup_printf("%s",	setting->username);
696
-			curl_easy_setopt(curl, CURLOPT_USERPWD, userpwd);
697
-			g_free(userpwd);
698
-		}
699
-		if (setting->verify_ssl_certificate)
700
-			curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2);
701
-		else {
702
-			curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
703
-			curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
704
-		}
705
-		if (setting->custom_cacert)
706
-			curl_easy_setopt(curl, CURLOPT_CAINFO, setting->custom_cacert);
707
-		curl_easy_setopt(curl, CURLOPT_USERAGENT, __CALDAV_USERAGENT);
708
-		url = rebuild_url(setting, NULL);
709
-		curl_easy_setopt(curl, CURLOPT_URL, url);
710
-		g_free(url);
711
-	}
712
-	return (curl) ? curl : NULL;
713
-}

+ 0
- 221
src/.svn/text-base/caldav-utils.h.svn-base View File

@@ -1,221 +0,0 @@
1
-/* vim: set textwidth=80 tabstop=4: */
2
-
3
-/* Copyright (c) 2008 Michael Rasmussen (mir@datanom.net)
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
- */
19
-
20
-#ifndef __CALDAV_UTILS_H__
21
-#define __CALDAV_UTILS_H__
22
-
23
-#include <glib.h>
24
-#include <stdlib.h>
25
-#include <curl/curl.h>
26
-#include "caldav.h"
27
-
28
-/**
29
- * @typedef struct _CALDAV_SETTINGS caldav_settings
30
- * A pointer to a struct _CALDAV_SETTINGS
31
- */
32
-typedef struct _CALDAV_SETTINGS caldav_settings;
33
-
34
-/**
35
- * @struct _CALDAV_SETTINGS
36
- * A struct used to exchange all user input between various parts
37
- * of the library
38
- */
39
-struct _CALDAV_SETTINGS {
40
-	gchar* username;
41
-	gchar* password;
42
-	gchar* url;
43
-	gchar* file;
44
-	gboolean usehttps;
45
-	gboolean verify_ssl_certificate;
46
-	gchar* custom_cacert;
47
-	gboolean debug;
48
-	gboolean use_locking;
49
-	char trace_ascii;
50
-	CALDAV_ACTION ACTION;
51
-	time_t start;
52
-	time_t end;
53
-};
54
-
55
-/**
56
- * @typedef struct MemoryStruct memory_ptr
57
- * A pointer to a struct MemoryStruct
58
- */
59
-typedef struct MemoryStruct memory_ptr;
60
-
61
-/**
62
- * @struct MemoryStruct
63
- * Used to hold messages between the CalDAV server and the library
64
- */
65
-struct MemoryStruct {
66
-	char *memory;
67
-	size_t size;
68
-};
69
-
70
-/** @struct config_data
71
- * Used to exchange user options to the library
72
- */
73
-struct config_data {
74
-	char trace_ascii;
75
-};
76
-
77
-/**
78
- * This function is burrowed from the libcurl documentation
79
- * @param text
80
- * @param stream
81
- * @param ptr
82
- * @param size
83
- * @param nohex
84
- */
85
-void dump(const char* text, FILE* stream, char* ptr, size_t size, char nohex);
86
-
87
-/**
88
- * This function is burrowed from the libcurl documentation
89
- * @param handle
90
- * @param type
91
- * @param data
92
- * @param size
93
- * @param userp
94
- * @return
95
- */
96
-int my_trace(CURL* handle, curl_infotype type, char* data, size_t size, void* userp);
97
-
98
-/**
99
- * This function is burrowed from the libcurl documentation
100
- * @param ptr
101
- * @param size
102
- * @return void* to memory region
103
- */
104
-size_t WriteMemoryCallback(void* ptr, size_t size, size_t nmemb, void* data);
105
-
106
-/**
107
- * This function is burrowed from the libcurl documentation
108
- * @param ptr
109
- * @param size
110
- * @param nmemb
111
- * @param data
112
- * @return number of written bytes