1. 18 Oct, 2006 1 commit
    • Per Cederqvist's avatar
      Renamed sync_output_header to foutput_header, and clean up the · ba79469c
      Per Cederqvist authored
      time handling.  This is more preparation for bug 1616.
      * src/server/simple-cache.c (sync_output_header): Renamed to
      foutput_header and moved to ram-output.c.  All callers updated.
      * src/server/ramkomd.c (current_time): Moved to server-time.c.
      (main): Use set_initial_time instead of calling gettimeofday and
      accessing current_time directly.
      * src/server/ram-output.c, src/server/ram-output.h
      (foutput_header): Renamed from sync_output_header.  Use
      output_format instead of a hardcoding it to 2.
      * src/server/dbck.c (main): Call set_initial_time().
      * src/server/dbck-cache.c (sync_output_header): Use foutput_header
      to output a format 2 header.
      * src/server/server-time.c: New file.
      (current_time): Moved here from ramkomd.c.
      * src/server/server-time.c, src/server/server-time.h
      (set_time): Moved here from connections.c.
      (set_initial_time): New function.
      * src/server/connections.c (set_ time): Moved to server-time.c.
      * src/server/Makefile.am (GENOBJS): Added server-time.c.
      (DBCK): Ditto.
      ba79469c
  2. 17 Oct, 2006 1 commit
    • Per Cederqvist's avatar
      Added functions wrapper functions around a few stdio functions, · d7498aeb
      Per Cederqvist authored
      and use them when accessing database files.  This is a preparatory
      step for introducing "struct dbfile", which will enable lyskomd to
      manipulate more than one database file format at the same time.
      That ability is needed for solving bug 1616.
      * src/server/ram-io.c, src/server/ram-io.h: New files.
      (dbfile_ftell): New function.
      (dbfile_getc): New function.
      (dbfile_ungetc): New function.
      * src/server/Makefile.am (libcheck_a_SOURCES): Added ram-io.c.
      (lyskomd_SOURCES): Added ram-io.h and ram-io.c.
      (DBCK): Added ram-io.h and ram-io.c.
      * src/server/simple-cache.c (read_person): Check the return value
      from fparse_set_pos().
      (read_conference): Ditto.
      (read_text_stat): Ditto.
      (write_conf): New static function.
      (save_one_conf): Use it to simplify code.
      (write_text): New static function.
      (save_one_text): Use it to simplify code.
      * src/server/ram-parse.h, src/server/ram-parse.c
      (fparse_set_pos): New function.
      * src/server/ram-output.c: Include ram-io.h.
      (foutput_space): New static function.  Use it where appropriate.
      (foutput_bool): Ditto.
      (foutput_array_start): Ditto.
      (foutput_array_end): Ditto.
      (foutput_array_nodata): Ditto.
      * src/server/ram-output.h, src/server/ram-output.c
      (foutput_atsign): New function.
      (foutput_newline): New function.
      * src/server/dbck-cache.c: Include ram-io.h.  Use dbfile_getc()
      instead of getc(), dbfile_ungetc() instead of ungetc(), and
      dbfile_ftell() instead of ftell(), when accessing the database
      file.  Use foutput_atsign and foutput_newline when appropriate.
      * src/server/local-to-global.c: Ditto.
      * src/server/ram-parse.c: Ditto.
      * src/server/simple-cache.c: Ditto.
      d7498aeb
  3. 23 Aug, 2003 1 commit
  4. 16 Aug, 2003 1 commit
  5. 12 Jul, 2003 1 commit
  6. 12 Jan, 2003 1 commit
  7. 06 Nov, 2002 1 commit
  8. 29 Mar, 2002 1 commit
  9. 01 Jan, 2002 1 commit
  10. 04 Nov, 2001 2 commits
  11. 26 Jun, 1999 1 commit
  12. 03 Jun, 1999 1 commit
  13. 24 May, 1999 3 commits
  14. 20 May, 1999 1 commit
  15. 12 May, 1999 1 commit
    • David Byers's avatar
      New RPC calls: · e6dca4a9
      David Byers authored
              set-pers-flags
      
      Modified RPC calls
              create-person (new parameter pers-flags)
      
      Removed several hard-coded constants and paths.
              Max texts
              Max conferences
              Nologin file
      
      Support for aux-item validation functions (not just regexps.)
      Support for aux-items that can only be created by the server
      Support for linking pairs of aux items
      
      Added test cases to improve code coverage
      
      Renamed log to kom_log to avoid conflicts with math function log.
      
      Several bug fixes (code and documentation)
      e6dca4a9
  16. 05 Apr, 1999 1 commit
    • Per Cederqvist's avatar
      (foutput_person_0): Added const qualifier to the person argument. · be3375fc
      Per Cederqvist authored
      (foutput_person_2): Likewise.
      (foutput_person): Likewise.
      (foutput_conference_2): Added const qualifier to the conf_c argument.
      (foutput_aux_flags): Now static.
      (foutput_aux_item): Now static.
      (foutput_aux_item_list): Now static.  Added const qualifier to the
      	aux argument.
      (foutput_membership_type): Now static.
      (foutput_string): Now static.
      (foutput_priv_bits): Now static.
      (foutput_personal_flags): Now static.
      (foutput_text_list): Now static.
      (foutput_mark_list): Added const qualifier to the mark_list argument.
      (foutput_mark): Now static.
      (foutput_membership_list): Now static.
      (foutput_time): Now static.
      (foutput_member_list): Now static.
      (foutput_member): Now static.
      (foutput_conf_type): Now static.
      (foutput_misc_info): Now static.
      (foutput_ulong): Now static.
      be3375fc
  17. 13 Jan, 1999 1 commit
  18. 26 Dec, 1998 1 commit
  19. 22 Aug, 1998 1 commit
  20. 26 Jul, 1998 1 commit
    • Per Cederqvist's avatar
      (foutput_person_0): Adjusted to new API of foutput_text_list. · 1ea7e221
      Per Cederqvist authored
      (foutput_person_2): Use l2g_write instead of foutput_text_list.
      (foutput_conference_2): Likewise.
      (foutput_conference_1): Adjusted to new API of foutput_text_list.
      (foutput_conference_0): Likewise.
      (foutput_text_list): The text_list argument is now a pointer to
      	Local_to_global instead of a Text_list.  The generated output is
      	still the same.
      (foutput_ulong): Eliminated a future buffer overrun.  Cleaned up the code.
      1ea7e221
  21. 08 Jul, 1998 1 commit
  22. 14 Jun, 1998 1 commit
  23. 13 Sep, 1997 1 commit
    • David Byers's avatar
      Documentation: Protocol-A.texi is now nearly complete. · ff7ebeaa
      David Byers authored
                     Documented the aux-item definition file format.
                     Updated the database format documentation.
      
      Server:        Implemented aux-items.
                     Checked error returns and set error-status to something
                         useful in most cases.
                     New RPC calls:
                         create-text
                         create-anonymous-text
                         create-conf
                         create-person
                         get-text-stat
                         get-conf-stat
                         modify-text-info
                         modify-conf-info
                         get-info
                         modify-server-info
                         get-collate-table
                         set-expire
                         query-unread-texts
                     New asynchronous messages:
                         new-text
                         deleted-text
      ff7ebeaa
  24. 03 Aug, 1996 2 commits
  25. 28 Jul, 1996 1 commit
  26. 27 Jul, 1996 1 commit
  27. 23 Jul, 1996 1 commit
  28. 08 Nov, 1995 1 commit
  29. 31 Oct, 1995 1 commit
    • David Byers's avatar
      Extended Conf_type to eight bits. · 83517982
      David Byers authored
      Added get_uconf_stat server call.
      Database can now store eight-bit Conf_type
      Call to get Small_conf data in the cache added
      UConference protocol data type added
      83517982
  30. 01 Jan, 1995 2 commits
  31. 05 Apr, 1994 1 commit
  32. 18 Oct, 1993 1 commit
  33. 16 Oct, 1993 1 commit
  34. 14 Oct, 1993 2 commits