-/*******************************************************************
- * write a structure.
- ********************************************************************/
-
-/*
- uint32 GetPrintProcessorDirectory(
- [in] unistr2 *name,
- [in] unistr2 *environment,
- [in] uint32 level,
- [in,out] RPC_BUFFER buffer,
- [in] uint32 offered,
- [out] uint32 needed,
- [out] uint32 returned
- );
-
-*/
-
-bool make_spoolss_q_getprintprocessordirectory(SPOOL_Q_GETPRINTPROCESSORDIRECTORY *q_u, const char *name, char *environment, int level, RPC_BUFFER *buffer, uint32 offered)
-{
- DEBUG(5,("make_spoolss_q_getprintprocessordirectory\n"));
-
- init_unistr2(&q_u->name, name, UNI_STR_TERMINATE);
- init_unistr2(&q_u->environment, environment, UNI_STR_TERMINATE);
-
- q_u->level = level;
-
- q_u->buffer = buffer;
- q_u->offered = offered;
-
- return True;
-}
-
-bool spoolss_io_q_getprintprocessordirectory(const char *desc, SPOOL_Q_GETPRINTPROCESSORDIRECTORY *q_u, prs_struct *ps, int depth)
-{
- uint32 ptr = 0;
-
- prs_debug(ps, depth, desc, "spoolss_io_q_getprintprocessordirectory");
- depth++;
-
- if(!prs_align(ps))
- return False;
-
- if (!prs_uint32("ptr", ps, depth, &ptr))
- return False;
-
- if (ptr) {
- if(!smb_io_unistr2("name", &q_u->name, True, ps, depth))
- return False;
- }
-
- if (!prs_align(ps))
- return False;
-
- if (!prs_uint32("ptr", ps, depth, &ptr))
- return False;
-
- if (ptr) {
- if(!smb_io_unistr2("environment", &q_u->environment, True,
- ps, depth))
- return False;
- }
-
- if (!prs_align(ps))
- return False;
-
- if(!prs_uint32("level", ps, depth, &q_u->level))
- return False;
-
- if(!prs_rpcbuffer_p("", ps, depth, &q_u->buffer))
- return False;
-
- if(!prs_align(ps))
- return False;
-
- if(!prs_uint32("offered", ps, depth, &q_u->offered))
- return False;
-
- return True;
-}
-
-/*******************************************************************
- * write a structure.
- ********************************************************************/
-
-bool spoolss_io_r_getprintprocessordirectory(const char *desc, SPOOL_R_GETPRINTPROCESSORDIRECTORY *r_u, prs_struct *ps, int depth)
-{
- prs_debug(ps, depth, desc, "spoolss_io_r_getprintprocessordirectory");
- depth++;
-
- if(!prs_align(ps))
- return False;
-
- if(!prs_rpcbuffer_p("", ps, depth, &r_u->buffer))
- return False;
-
- if(!prs_align(ps))
- return False;
-
- if(!prs_uint32("needed", ps, depth, &r_u->needed))
- return False;
-
- if(!prs_werror("status", ps, depth, &r_u->status))
- return False;
-
- return True;
-}
-
-bool smb_io_printprocessordirectory_1(const char *desc, RPC_BUFFER *buffer, PRINTPROCESSOR_DIRECTORY_1 *info, int depth)
-{
- prs_struct *ps=&buffer->prs;
-
- prs_debug(ps, depth, desc, "smb_io_printprocessordirectory_1");
- depth++;
-
- buffer->struct_start=prs_offset(ps);
-
- if (!smb_io_unistr(desc, &info->name, ps, depth))
- return False;
-
- return True;
-}
-