~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to camel/camel-msgport.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
}
250
250
#endif
251
251
 
 
252
/**
 
253
 * camel_msgport_new:
 
254
 *
 
255
 * Since: 2.24
 
256
 **/
252
257
CamelMsgPort *
253
258
camel_msgport_new (void)
254
259
{
266
271
        return msgport;
267
272
}
268
273
 
 
274
/**
 
275
 * camel_msgport_destroy:
 
276
 *
 
277
 * Since: 2.24
 
278
 **/
269
279
void
270
280
camel_msgport_destroy (CamelMsgPort *msgport)
271
281
{
286
296
        g_slice_free (CamelMsgPort, msgport);
287
297
}
288
298
 
 
299
/**
 
300
 * camel_msgport_fd:
 
301
 *
 
302
 * Since: 2.24
 
303
 **/
289
304
gint
290
305
camel_msgport_fd (CamelMsgPort *msgport)
291
306
{
303
318
}
304
319
 
305
320
#ifdef HAVE_NSS
 
321
/**
 
322
 * camel_msgport_prfd:
 
323
 *
 
324
 * Since: 2.24
 
325
 **/
306
326
PRFileDesc *
307
327
camel_msgport_prfd (CamelMsgPort *msgport)
308
328
{
320
340
}
321
341
#endif
322
342
 
 
343
/**
 
344
 * camel_msgport_push:
 
345
 *
 
346
 * Since: 2.24
 
347
 **/
323
348
void
324
349
camel_msgport_push (CamelMsgPort *msgport, CamelMsg *msg)
325
350
{
367
392
        g_async_queue_unlock (msgport->queue);
368
393
}
369
394
 
 
395
/**
 
396
 * camel_msgport_pop:
 
397
 *
 
398
 * Since: 2.24
 
399
 **/
370
400
CamelMsg *
371
401
camel_msgport_pop (CamelMsgPort *msgport)
372
402
{
392
422
        return msg;
393
423
}
394
424
 
 
425
/**
 
426
 * camel_msgport_try_pop:
 
427
 *
 
428
 * Since: 2.24
 
429
 **/
395
430
CamelMsg *
396
431
camel_msgport_try_pop (CamelMsgPort *msgport)
397
432
{
415
450
        return msg;
416
451
}
417
452
 
 
453
/**
 
454
 * camel_msgport_timed_pop:
 
455
 * @msgport: a #CamelMsgPort
 
456
 * @end_time: a #GTimeVal
 
457
 *
 
458
 * Since: 2.30
 
459
 **/
 
460
CamelMsg *
 
461
camel_msgport_timed_pop (CamelMsgPort *msgport, GTimeVal *end_time)
 
462
{
 
463
        CamelMsg *msg;
 
464
 
 
465
        g_return_val_if_fail (msgport != NULL, NULL);
 
466
 
 
467
        g_async_queue_lock (msgport->queue);
 
468
 
 
469
        msg = g_async_queue_timed_pop_unlocked (msgport->queue, end_time);
 
470
 
 
471
        if (msg != NULL && msg->flags & MSG_FLAG_SYNC_WITH_PIPE)
 
472
                msgport_sync_with_pipe (msgport->pipe[0]);
 
473
#ifdef HAVE_NSS
 
474
        if (msg != NULL && msg->flags & MSG_FLAG_SYNC_WITH_PR_PIPE)
 
475
                msgport_sync_with_prpipe (msgport->prpipe[0]);
 
476
#endif
 
477
 
 
478
        g_async_queue_unlock (msgport->queue);
 
479
 
 
480
        return msg;
 
481
}
 
482
 
 
483
/**
 
484
 * camel_msgport_reply:
 
485
 *
 
486
 * Since: 2.24
 
487
 **/
418
488
void
419
489
camel_msgport_reply (CamelMsg *msg)
420
490
{