+
+void RegisterEmbeddableMimeType(const char *MimeType, long MTLen, int Priority)
+{
+ StrBuf *MT;
+ printf("%s - %ld\n", MimeType, Priority);
+ MT = NewStrBufPlain(MimeType, MTLen);
+ Put(EmbeddableMimes, IKEY(Priority), MT, HFreeStrBuf);
+}
+
+void CreateMimeStr(void)
+{
+ HashPos *it;
+ void *vMime;
+ long len = 0;
+ const char *Key;
+
+ it = GetNewHashPos(EmbeddableMimes, 0);
+ while (GetNextHashPos(EmbeddableMimes, it, &len, &Key, &vMime) &&
+ (vMime != NULL)) {
+ printf("%s - \n", ChrPtr((StrBuf*) vMime));
+ if (StrLength(EmbeddableMimeStrs) > 0)
+ StrBufAppendBufPlain(EmbeddableMimeStrs, HKEY("|"), 0);
+ else
+ StrBufAppendBufPlain(EmbeddableMimeStrs, HKEY("MSGP "), 0);
+ StrBufAppendBuf(EmbeddableMimeStrs, (StrBuf*) vMime, 0);
+ }
+ printf("------%ld-------------%s------%s------------\n", len, ChrPtr(EmbeddableMimeStrs), ChrPtr((StrBuf*) vMime));
+}
+
+void
+ServerStartModule_SERV_FUNC
+(void)
+{
+ EmbeddableMimes = NewHash(1, Flathash);
+ EmbeddableMimeStrs = NewStrBuf();
+}
+
+
+void
+ServerShutdownModule_SERV_FUNC
+(void)
+{
+ FreeStrBuf(&EmbeddableMimeStrs);
+ DeleteHash(&EmbeddableMimes);
+}
+