~ubuntu-branches/ubuntu/breezy/orbit2/breezy

« back to all changes in this revision

Viewing changes to src/orb/poa/orbit-poa.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-09-06 16:37:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050906163702-hrqi0ctymth53bnn
Tags: 1:2.12.4-0ubuntu1
* New upstream version.
* debian/patches/100-compile-name-server.patch:
  - updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include "config.h"
5
5
 
6
 
#define ORBIT_RAND_DATA_LEN     8
7
 
#define ORBIT_ADAPTOR_KEY_LEN   (ORBIT_RAND_DATA_LEN + sizeof (CORBA_long))
 
6
/*
 
7
 * Our object key is 28 bytes long and looks like this:
 
8
 *
 
9
 * .----- adaptor prefix -----.---------- ObjectId -----------,
 
10
 * |      4            16     |      4              4         |
 
11
 * | adaptor idx | orb cookie | object idx | object id random |
 
12
 */
 
13
 
 
14
#define ORBIT_ADAPTOR_KEY_LEN     (128/8)
 
15
#define ORBIT_ADAPTOR_PREFIX_LEN  (sizeof (CORBA_long) + ORBIT_ADAPTOR_KEY_LEN)
 
16
 
 
17
/* We have an an auto-inc + 32 bits of poor randomness */
 
18
#define ORBIT_OBJECT_ID_LEN 4
8
19
 
9
20
/*
10
21
 * Exported by poa.c.