~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to libmapi/property_tags.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        { PidTagAddressBookHierarchicalRootDepartment_Error,                  PT_ERROR,     "PidTagAddressBookHierarchicalRootDepartment_Error"                 },
65
65
        { PidTagAddressBookHierarchicalShowInDepartments,                     PT_OBJECT,    "PidTagAddressBookHierarchicalShowInDepartments"                    },
66
66
        { PidTagAddressBookHierarchicalShowInDepartments_Error,               PT_ERROR,     "PidTagAddressBookHierarchicalShowInDepartments_Error"              },
67
 
        { PidTagAddressBookHomeMessageDatabase,                               PT_STRING8,   "PidTagAddressBookHomeMessageDatabase"                              },
 
67
        { PidTagAddressBookHomeMessageDatabase,                               PT_UNICODE,   "PidTagAddressBookHomeMessageDatabase"                              },
68
68
        { PidTagAddressBookHomeMessageDatabase_Error,                         PT_ERROR,     "PidTagAddressBookHomeMessageDatabase_Error"                        },
69
69
        { PidTagAddressBookIsMaster,                                          PT_BOOLEAN,   "PidTagAddressBookIsMaster"                                         },
70
70
        { PidTagAddressBookIsMaster_Error,                                    PT_ERROR,     "PidTagAddressBookIsMaster_Error"                                   },
671
671
        { PidTagObjectType_Error,                                             PT_ERROR,     "PidTagObjectType_Error"                                            },
672
672
        { PidTagOfficeLocation,                                               PT_UNICODE,   "PidTagOfficeLocation"                                              },
673
673
        { PidTagOfficeLocation_Error,                                         PT_ERROR,     "PidTagOfficeLocation_Error"                                        },
 
674
        { PidTagOfflineAddressBookCompressedSize,                             PT_LONG,      "PidTagOfflineAddressBookCompressedSize"                            },
 
675
        { PidTagOfflineAddressBookCompressedSize_Error,                       PT_ERROR,     "PidTagOfflineAddressBookCompressedSize_Error"                      },
674
676
        { PidTagOfflineAddressBookContainerGuid,                              PT_STRING8,   "PidTagOfflineAddressBookContainerGuid"                             },
675
677
        { PidTagOfflineAddressBookContainerGuid_Error,                        PT_ERROR,     "PidTagOfflineAddressBookContainerGuid_Error"                       },
676
678
        { PidTagOfflineAddressBookDistinguishedName,                          PT_STRING8,   "PidTagOfflineAddressBookDistinguishedName"                         },
677
679
        { PidTagOfflineAddressBookDistinguishedName_Error,                    PT_ERROR,     "PidTagOfflineAddressBookDistinguishedName_Error"                   },
 
680
        { PidTagOfflineAddressBookFileSize,                                   PT_LONG,      "PidTagOfflineAddressBookFileSize"                                  },
 
681
        { PidTagOfflineAddressBookFileSize_Error,                             PT_ERROR,     "PidTagOfflineAddressBookFileSize_Error"                            },
 
682
        { PidTagOfflineAddressBookFileType,                                   PT_LONG,      "PidTagOfflineAddressBookFileType"                                  },
 
683
        { PidTagOfflineAddressBookFileType_Error,                             PT_ERROR,     "PidTagOfflineAddressBookFileType_Error"                            },
 
684
        { PidTagOfflineAddressBookLanguageId,                                 PT_LONG,      "PidTagOfflineAddressBookLanguageId"                                },
 
685
        { PidTagOfflineAddressBookLanguageId_Error,                           PT_ERROR,     "PidTagOfflineAddressBookLanguageId_Error"                          },
678
686
        { PidTagOfflineAddressBookMessageClass,                               PT_LONG,      "PidTagOfflineAddressBookMessageClass"                              },
679
687
        { PidTagOfflineAddressBookMessageClass_Error,                         PT_ERROR,     "PidTagOfflineAddressBookMessageClass_Error"                        },
680
688
        { PidTagOfflineAddressBookName,                                       PT_UNICODE,   "PidTagOfflineAddressBookName"                                      },
681
689
        { PidTagOfflineAddressBookName_Error,                                 PT_ERROR,     "PidTagOfflineAddressBookName_Error"                                },
682
690
        { PidTagOfflineAddressBookSequence,                                   PT_LONG,      "PidTagOfflineAddressBookSequence"                                  },
683
691
        { PidTagOfflineAddressBookSequence_Error,                             PT_ERROR,     "PidTagOfflineAddressBookSequence_Error"                            },
 
692
        { PidTagOfflineAddressBookShaHash,                                    PT_BINARY,    "PidTagOfflineAddressBookShaHash"                                   },
 
693
        { PidTagOfflineAddressBookShaHash_Error,                              PT_ERROR,     "PidTagOfflineAddressBookShaHash_Error"                             },
684
694
        { PidTagOfflineAddressBookTruncatedProperties,                        PT_MV_LONG,   "PidTagOfflineAddressBookTruncatedProperties"                       },
685
695
        { PidTagOfflineAddressBookTruncatedProperties_Error,                  PT_ERROR,     "PidTagOfflineAddressBookTruncatedProperties_Error"                 },
686
696
        { PidTagOrdinalMost,                                                  PT_LONG,      "PidTagOrdinalMost"                                                 },
693
703
        { PidTagOriginalDisplayBcc_Error,                                     PT_ERROR,     "PidTagOriginalDisplayBcc_Error"                                    },
694
704
        { PidTagOriginalDisplayCc,                                            PT_UNICODE,   "PidTagOriginalDisplayCc"                                           },
695
705
        { PidTagOriginalDisplayCc_Error,                                      PT_ERROR,     "PidTagOriginalDisplayCc_Error"                                     },
 
706
        { PidTagOriginalDisplayName,                                          PT_UNICODE,   "PidTagOriginalDisplayName"                                         },
 
707
        { PidTagOriginalDisplayName_Error,                                    PT_ERROR,     "PidTagOriginalDisplayName_Error"                                   },
696
708
        { PidTagOriginalDisplayTo,                                            PT_UNICODE,   "PidTagOriginalDisplayTo"                                           },
697
709
        { PidTagOriginalDisplayTo_Error,                                      PT_ERROR,     "PidTagOriginalDisplayTo_Error"                                     },
698
710
        { PidTagOriginalEntryId,                                              PT_BINARY,    "PidTagOriginalEntryId"                                             },
701
713
        { PidTagOriginalMessageClass_Error,                                   PT_ERROR,     "PidTagOriginalMessageClass_Error"                                  },
702
714
        { PidTagOriginalMessageId,                                            PT_UNICODE,   "PidTagOriginalMessageId"                                           },
703
715
        { PidTagOriginalMessageId_Error,                                      PT_ERROR,     "PidTagOriginalMessageId_Error"                                     },
 
716
        { PidTagOriginalSearchKey,                                            PT_BINARY,    "PidTagOriginalSearchKey"                                           },
 
717
        { PidTagOriginalSearchKey_Error,                                      PT_ERROR,     "PidTagOriginalSearchKey_Error"                                     },
704
718
        { PidTagOriginalSenderAddressType,                                    PT_UNICODE,   "PidTagOriginalSenderAddressType"                                   },
705
719
        { PidTagOriginalSenderAddressType_Error,                              PT_ERROR,     "PidTagOriginalSenderAddressType_Error"                             },
706
720
        { PidTagOriginalSenderEmailAddress,                                   PT_UNICODE,   "PidTagOriginalSenderEmailAddress"                                  },
1221
1235
        { PidTagWlinkEntryId_Error,                                           PT_ERROR,     "PidTagWlinkEntryId_Error"                                          },
1222
1236
        { PidTagWlinkFlags,                                                   PT_LONG,      "PidTagWlinkFlags"                                                  },
1223
1237
        { PidTagWlinkFlags_Error,                                             PT_ERROR,     "PidTagWlinkFlags_Error"                                            },
1224
 
        { PidTagWlinkFolderType,                                              PT_BINARY,    "PidTagWlinkFolderType"                                             },
 
1238
        { PidTagWlinkFolderType,                                              PT_CLSID,     "PidTagWlinkFolderType"                                             },
1225
1239
        { PidTagWlinkFolderType_Error,                                        PT_ERROR,     "PidTagWlinkFolderType_Error"                                       },
1226
 
        { PidTagWlinkGroupClsid,                                              PT_BINARY,    "PidTagWlinkGroupClsid"                                             },
 
1240
        { PidTagWlinkGroupClsid,                                              PT_CLSID,     "PidTagWlinkGroupClsid"                                             },
1227
1241
        { PidTagWlinkGroupClsid_Error,                                        PT_ERROR,     "PidTagWlinkGroupClsid_Error"                                       },
1228
1242
        { PidTagWlinkGroupHeaderID,                                           PT_CLSID,     "PidTagWlinkGroupHeaderID"                                          },
1229
1243
        { PidTagWlinkGroupHeaderID_Error,                                     PT_ERROR,     "PidTagWlinkGroupHeaderID_Error"                                    },
1310
1324
 
1311
1325
        return 0;
1312
1326
}
 
1327
 
 
1328
_PUBLIC_ uint16_t get_property_type(uint16_t untypedtag)
 
1329
{
 
1330
        uint32_t        idx;
 
1331
        uint16_t        current_type;
 
1332
 
 
1333
        for (idx = 0; canonical_property_tags[idx].proptag; idx++) {
 
1334
                if ((canonical_property_tags[idx].proptag >> 16) == untypedtag) {
 
1335
                        current_type = canonical_property_tags[idx].proptype;
 
1336
                        if (current_type != PT_ERROR && current_type != PT_STRING8) {
 
1337
                                return current_type;
 
1338
                        }
 
1339
                }
 
1340
        }
 
1341
 
 
1342
        DEBUG(5, ("%s: type for property '%x' could not be deduced\n", __FUNCTION__, untypedtag));
 
1343
        return 0;
 
1344
}
 
1345
 
 
1346